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 |
---|---|
94 | * - `taxonomy_template` |
95 | * |
96 | * @since 1.5.0 |
97 | * @since 4.8.0 The `$type` and `$templates` parameters were added. |
98 | * |
99 | * @param string $template Path to the template. See locate_template(). |
100 | * @param string $type Sanitized filename without extension. |
101 | * @param string[] $templates A list of template candidates, in descending order of priority. |
102 | */ |
103 | return apply_filters( "{$type}_template", $template, $type, $templates ); |
104 | } |
105 |
|
106 | /** |
107 | * Retrieve path of index template in current or parent template. |
108 | * |
109 | * The template hierarchy and template path are filterable via the {@see '$type_template_hierarchy'} |
110 | * and {@see '$type_template'} dynamic hooks, where `$type` is 'index'. |
111 | * |
112 | * @since 3.0.0 |