Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: template_include

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

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