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 |
---|---|
140 | * @uses apply_filters() Calls 'template_directory_uri' filter on template directory URI path and template name. |
141 | * |
142 | * @return string Template directory URI. |
143 | */ |
144 | function get_template_directory_uri() { |
145 | $template = get_template(); |
146 | $theme_root_uri = get_theme_root_uri( $template ); |
147 | $template_dir_uri = "$theme_root_uri/$template"; |
148 |
|
149 | return apply_filters( 'template_directory_uri', $template_dir_uri, $template, $theme_root_uri ); |
150 | } |
151 |
|
152 | /** |
153 | * Retrieve theme data from parsed theme file. |
154 | * |
155 | * The description will have the tags filtered with the following HTML elements |
156 | * whitelisted. The <b>'a'</b> element with the <em>href</em> and <em>title</em> |
157 | * attributes. The <b>abbr</b> element with the <em>title</em> attribute. The |
158 | * <b>acronym<b> element with the <em>title</em> attribute allowed. The |