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 |
|---|---|
| 154 | $messages[2] = __('Media deleted.'); |
| 155 | $messages[3] = __('Error saving media attachment.'); |
| 156 | |
| 157 | if ( isset($_GET['message']) && (int) $_GET['message'] ) { |
| 158 | $message = $messages[$_GET['message']]; |
| 159 | $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']); |
| 160 | } |
| 161 | ?> |
| 162 | |
| 163 | <?php do_action('restrict_manage_posts'); ?> |
| 164 | |
| 165 | <div class="wrap"> |
| 166 | <?php screen_icon(); ?> |
| 167 | <h2><?php echo esc_html( $title ); |
| 168 | if ( isset($_GET['s']) && $_GET['s'] ) |
| 169 | printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( get_search_query() ) ); ?> |
| 170 | </h2> |
| 171 | |
| 172 | <?php |