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:
parent
4b4c9e966e
commit
5e6f121eb7
@ -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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user