Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: manage_pages_query

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
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';
130 }
131
132 $query = apply_filters('manage_pages_query', $query);
133 wp($query);
134
135 if ( is_singular() ) {
136      wp_enqueue_script( 'admin-comments' );
137      enqueue_comment_hotkeys_js();
138 }
139
140 require_once('admin-header.php'); ?>
141