Filters the active theme directory path.
$template_dirstring$templatestring$theme_rootstringwp-includes/theme.php:351get_template_directory() * @since 1.5.0 * * @param string $template_dir The path of the active theme directory. * @param string $template Directory name of the active theme. * @param string $theme_root Absolute path to the themes directory. */ return apply_filters( 'template_directory', $template_dir, $template, $theme_root );} /** * Retrieves template directory URI for the active theme. * * @since 1.5.0Introduced in 1.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.