Advertisement
Guest User

r-a-y

a guest
Jul 3rd, 2010
415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. function my_exclude_wp_pages( $exclude_array ) {
  2. // array of ids you want to exclude
  3. $my_ids = array(1,2,3);
  4.  
  5. // we merge the array from above to any existing page ids that may be excluded via other plugins
  6. $exclude_merge = array_merge( $my_ids, $exclude_array );
  7.  
  8. return $exclude_merge;
  9. }
  10. add_filter( 'wp_list_pages_excludes', 'my_exclude_wp_pages' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement