wpseek.com
A WordPress-centric search engine for devs and theme authors



template_directory › WordPress Filter Hooks

Since1.5.0
Deprecatedn/a
apply_filters( 'template_directory', $template_dir, $template, $theme_root )
Parameters: (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
Defined at:
Codex:

Filters the active theme directory path.





Source

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