A WordPress-centric search engine for devs and theme authors



template_directory ›

Since1.5.0
Deprecatedn/a
apply_filters( 'template_directory', $template_dir, $template, $theme_root )
Parameters: (3)
  • (string) $template_dir The URI of the current theme directory.
    Required: Yes
  • (string) $template Directory name of the current theme.
    Required: Yes
  • (string) $theme_root Absolute path to the themes directory.
    Required: Yes
Defined at:
Codex:

Filters the current theme directory path.





Source

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