apply_filters( ‘template_directory’, string $template_dir, string $template, string $theme_root )

In this article

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

return apply_filters( 'template_directory', $template_dir, $template, $theme_root );

Changelog

VersionDescription
1.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.