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 |
|---|---|
| 86 | 'posts_per_page' => -1, 'posts_per_archive_page' => -1, 'order' => 'asc'); |
| 87 | |
| 88 | $post_status_label = __('Pages'); |
| 89 | if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) ) { |
| 90 | $post_status_label = $post_stati[$_GET['post_status']][1]; |
| 91 | $query['post_status'] = $_GET['post_status']; |
| 92 | $query['perm'] = 'readable'; |
| 93 | } |
| 94 | |
| 95 | $query = apply_filters('manage_pages_query', $query); |
| 96 | wp($query); |
| 97 | |
| 98 | if ( is_singular() ) { |
| 99 | wp_enqueue_script( 'admin-comments' ); |
| 100 | enqueue_comment_hotkeys_js(); |
| 101 | } |
| 102 | |
| 103 | require_once('admin-header.php'); ?> |
| 104 | |