WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
76 |
|
77 | $post_stati = array( // array( adj, noun ) |
78 | 'publish' => array(_x('Published', 'page'), __('Published pages'), _nx_noop('Published <span class="count">(%s)</span>', 'Published <span class="count">(%s)</span>', 'page')), |
79 | 'future' => array(_x('Scheduled', 'page'), __('Scheduled pages'), _nx_noop('Scheduled <span class="count">(%s)</span>', 'Scheduled <span class="count">(%s)</span>', 'page')), |
80 | 'pending' => array(_x('Pending Review', 'page'), __('Pending pages'), _nx_noop('Pending Review <span class="count">(%s)</span>', 'Pending Review <span class="count">(%s)</span>', 'page')), |
81 | 'draft' => array(_x('Draft', 'page'), _x('Drafts', 'manage posts header'), _nx_noop('Draft <span class="count">(%s)</span>', 'Drafts <span class="count">(%s)</span>', 'page')), |
82 | 'private' => array(_x('Private', 'page'), __('Private pages'), _nx_noop('Private <span class="count">(%s)</span>', 'Private <span class="count">(%s)</span>', 'page')) |
83 | ); |
84 |
|
85 | $post_stati = apply_filters('page_stati', $post_stati); |
86 |
|
87 | $query = array('post_type' => 'page', 'orderby' => 'menu_order title', |
88 | 'posts_per_page' => -1, 'posts_per_archive_page' => -1, 'order' => 'asc'); |
89 |
|
90 | $post_status_label = __('Pages'); |
91 | if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) ) { |
92 | $post_status_label = $post_stati[$_GET['post_status']][1]; |
93 | $query['post_status'] = $_GET['post_status']; |
94 | $query['perm'] = 'readable'; |