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