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
760      $templates = array();
761
762      if ( $tag_name )
763           $templates[] = "tag-$tag_name.php";
764      if ( $tag_id )
765           $templates[] = "tag-$tag_id.php";
766      $templates[] = "tag.php";
767
768      $template = locate_template($templates);
769      return apply_filters('tag_template', $template);
770 }
771
772 /**
773  * Retrieve path of taxonomy template in current or parent template.
774  *
775  * Retrieves the taxonomy and term, if term is available. The template is
776  * prepended with 'taxonomy-' and followed by both the taxonomy string and
777  * the taxonomy string followed by a dash and then followed by the term.
778  *