On this page
apply_filters( 'template_directory_uri', string $template_dir_uri, string $template, string $theme_root_uri )
Filters the active theme directory URI.
Parameters
$template_dir_uristring-
The URI of the active theme directory.
$templatestring-
Directory name of the active theme.
$theme_root_uristring-
The themes root URI.
Source
File: wp-includes/theme.php. View all references
return apply_filters( 'template_directory_uri', $template_dir_uri, $template, $theme_root_uri );
Related
Used By
| Used By | Description |
|---|---|
| get_template_directory_uri() wp-includes/theme.php | Retrieves template directory URI for the active theme. |
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/template_directory_uri