On this page
apply_filters( 'template_directory', string $template_dir, string $template, string $theme_root )
Filters the active theme directory path.
Parameters
$template_dirstring-
The path of the active theme directory.
$templatestring-
Directory name of the active theme.
$theme_rootstring-
Absolute path to the themes directory.
Source
File: wp-includes/theme.php. View all references
return apply_filters( 'template_directory', $template_dir, $template, $theme_root );
Related
Used By
| Used By | Description |
|---|---|
| get_template_directory() wp-includes/theme.php | Retrieves template directory path 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