[wp-hackers] Custom page orders in edit pages menu?
batmoo at gmail.com
Tue Dec 1 05:49:31 UTC 2009
> > What changes would need to be made to allow this to work in the Pages
> edit screen? I looked for a pre_get_pages hook, but there apparently isn't
Looks like you could use the manage_pages_query filter.
Called in edit-pages.php as follows:
$query = apply_filters('manage_pages_query', $query);
Hook into that the same way pre_get_posts does in the code sample you
included and that should work.
Though, should note, Glenn's solution would work as well.
www.digitalize.ca | @mjangda
More information about the wp-hackers