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 |
---|---|
45 | $_GET['paged'] = 1; |
46 |
|
47 | ?> |
48 |
|
49 | <div class="wrap"> |
50 |
|
51 | <form id="posts-filter" action="" method="get"> |
52 | <h2><?php |
53 | if ( is_single() ) { |
54 | printf(__('Comments on %s'), apply_filters( "the_title", $post->post_title)); |
55 | } else { |
56 | $post_status_label = _c('Manage Posts|manage posts header'); |
57 | if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) ) |
58 | $post_status_label = $post_stati[$_GET['post_status']][1]; |
59 | if ( $post_listing_pageable && !is_archive() && !is_search() ) |
60 | $h2_noun = is_paged() ? sprintf(__( 'Previous %s' ), $post_status_label) : sprintf(__('Latest %s'), $post_status_label); |
61 | else |
62 | $h2_noun = $post_status_label; |
63 | // Use $_GET instead of is_ since they can override each other |