apply_filters( 'template_directory', string $template_dir, string $template, string $theme_root )

Filters the current theme directory path.

Parameters

$template_dir

(string) The path of the current theme directory.

$template

(string) Directory name of the current theme.

$theme_root

(string) Absolute path to the themes directory.

Source

File: wp-includes/theme.php

View on Trac

Changelog

Version Description
1.5.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/template_directory