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 |
|---|---|
| 198 | } |
| 199 | |
| 200 | if ($pagenow != 'post.php' && $pagenow != 'edit.php') { |
| 201 | if ( get_settings('gzipcompression') ) |
| 202 | gzip_compression(); |
| 203 | } |
| 204 | |
| 205 | // Template redirection |
| 206 | if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') ) { |
| 207 | do_action('template_redirect'); |
| 208 | if ( is_feed() && empty($doing_rss) ) { |
| 209 | include(ABSPATH . '/wp-feed.php'); |
| 210 | exit; |
| 211 | } else if ( is_trackback() && empty($doing_trackback) ) { |
| 212 | include(ABSPATH . '/wp-trackback.php'); |
| 213 | exit; |
| 214 | } else if ( is_404() && get_404_template() ) { |
| 215 | include(get_404_template()); |
| 216 | exit; |