Allow a plugin to filter the list of Page statuses. Fies #9928 props coffee2code.

git-svn-id: https://develop.svn.wordpress.org/trunk@11458 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2009-05-25 21:47:11 +00:00
parent 4b4c9e966e
commit 5e6f121eb7
1 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,8 @@ $post_stati = array( // array( adj, noun )
'private' => array(_x('Private', 'page'), __('Private pages'), _nx_noop('Private <span class="count">(%s)</span>', 'Private <span class="count">(%s)</span>', 'page'))
);
$post_stati = apply_filters('page_stati', $post_stati);
$query = array('post_type' => 'page', 'orderby' => 'menu_order title',
'posts_per_page' => -1, 'posts_per_archive_page' => -1, 'order' => 'asc');