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
611  * fallback to tag.php template, if the name tag file doesn't exist.
612  *
613  * @since 2.3.0
614  * @uses apply_filters() Calls 'tag_template' on file path of tag template.
615  *
616  * @return string
617  */
618 function get_tag_template() {
619      $template = locate_template(array("tag-" . get_query_var('tag') . '.php', 'tag.php'));
620      return apply_filters('tag_template', $template);
621 }
622
623 /**
624  * Retrieve path of taxonomy template in current or parent template.
625  *
626  * Retrieves the taxonomy and term, if term is available. The template is
627  * prepended with 'taxonomy-' and followed by both the taxonomy string and
628  * the taxonomy string followed by a dash and then followed by the term.
629  *