过滤当前主题目录路径。
原型
apply_filters( 'template_directory', string $template_dir, string $template, string $theme_root )
参数
$template_dir
(string)
当前主题目录的URI。
$template
(string)
当前主题的目录名称。
$theme_root
(string)
主题目录的绝对路径。
源文件
路径:wp-includes/theme.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/template_directory/