Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



template_directory ›

Seit1.5.0
Veraltetn/v
apply_filters( 'template_directory', $template_dir, $template, $theme_root )
Parameter: (3)
  • (string) $template_dir The URI of the current theme directory.
    Erforderlich: Ja
  • (string) $template Directory name of the current theme.
    Erforderlich: Ja
  • (string) $theme_root Absolute path to the themes directory.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the current theme directory path.





Quellcode

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