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 |
---|---|
37 | elseif ( is_tag() && $template = get_tag_template() ) : |
38 | elseif ( is_author() && $template = get_author_template() ) : |
39 | elseif ( is_date() && $template = get_date_template() ) : |
40 | elseif ( is_archive() && $template = get_archive_template() ) : |
41 | elseif ( is_comments_popup() && $template = get_comments_popup_template() ) : |
42 | elseif ( is_paged() && $template = get_paged_template() ) : |
43 | else : |
44 | $template = get_index_template(); |
45 | endif; |
46 | if ( $template = apply_filters( 'template_include', $template ) ) |
47 | include( $template ); |
48 | return; |
49 | endif; |
50 |
|