Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: tag_template

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
590  * fallback to tag.php template, if the name tag file doesn't exist.
591  *
592  * @since 2.3.0
593  * @uses apply_filters() Calls 'tag_template' on file path of tag template.
594  *
595  * @return string
596  */
597 function get_tag_template() {
598      $template = locate_template(array("tag-" . get_query_var('tag') . '.php', 'tag.php'));
599      return apply_filters('tag_template', $template);
600 }
602 /**
603  * Retrieve path of taxonomy template in current or parent template.
604  *
605  * Retrieves the taxonomy and term, if term is available. The template is
606  * prepended with 'taxonomy-' and followed by both the taxonomy string and
607  * the taxonomy string followed by a dash and then followed by the term.
608  *