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 |
---|---|
47 | $post_status_q = ''; |
48 | if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) ) { |
49 | $post_status_label = $post_stati[$_GET['post_status']][1]; |
50 | $post_status_q = '&post_status=' . $_GET['post_status']; |
51 | $post_status_q .= '&perm=readable'; |
52 | } |
53 |
|
54 | $query_str = "post_type=page&orderby=menu_order title&what_to_show=posts$post_status_q&posts_per_page=-1&posts_per_archive_page=-1&order=asc"; |
55 |
|
56 | $query_str = apply_filters('manage_pages_query', $query_str); |
57 | wp($query_str); |
58 |
|
59 | if ( is_singular() ) |
60 | wp_enqueue_script( 'admin-comments' ); |
61 | require_once('admin-header.php'); |
62 |
|
63 | ?> |
64 | <div class="wrap"> |
65 | <form id="posts-filter" action="" method="get"> |