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