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 |
---|---|
111 | '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')), |
112 | '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')), |
113 | 'private' => array(_x('Private', 'page'), __('Private pages'), _nx_noop('Private <span class="count">(%s)</span>', 'Private <span class="count">(%s)</span>', 'page')), |
114 | 'trash' => array(_x('Trash', 'page'), __('Trash pages'), _nx_noop('Trash <span class="count">(%s)</span>', 'Trash <span class="count">(%s)</span>', 'page')) |
115 | ); |
116 |
|
117 | if ( !EMPTY_TRASH_DAYS ) |
118 | unset($post_stati['trash']); |
119 |
|
120 | $post_stati = apply_filters('page_stati', $post_stati); |
121 |
|
122 | $query = array('post_type' => 'page', 'orderby' => 'menu_order title', |
123 | 'posts_per_page' => -1, 'posts_per_archive_page' => -1, 'order' => 'asc'); |
124 |
|
125 | $post_status_label = __('Pages'); |
126 | if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) ) { |
127 | $post_status_label = $post_stati[$_GET['post_status']][1]; |
128 | $query['post_status'] = $_GET['post_status']; |
129 | $query['perm'] = 'readable'; |