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 |
---|---|
819 | $templates = array(); |
820 |
|
821 | if ( $tag_name ) |
822 | $templates[] = "tag-$tag_name.php"; |
823 | if ( $tag_id ) |
824 | $templates[] = "tag-$tag_id.php"; |
825 | $templates[] = "tag.php"; |
826 |
|
827 | $template = locate_template($templates); |
828 | return apply_filters('tag_template', $template); |
829 | } |
830 |
|
831 | /** |
832 | * Retrieve path of taxonomy template in current or parent template. |
833 | * |
834 | * Retrieves the taxonomy and term, if term is available. The template is |
835 | * prepended with 'taxonomy-' and followed by both the taxonomy string and |
836 | * the taxonomy string followed by a dash and then followed by the term. |
837 | * |