wpseek.com
WordPress开发者和主题制作者的搜索引擎



template_directory › WordPress过滤钩子

Since1.5.0
已弃用n/a
› apply_filters( 'template_directory', $template_dir, $template, $theme_root )
参数: (3)
  • () template_dir The path of the active theme directory.
    Required: Yes
  • () template Directory name of the active theme.
    Required: Yes
  • () theme_root Absolute path to the themes directory.
    Required: Yes
定义在:
文档:

Filters the active theme directory path.





源码

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