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



theme_templates › WordPress Filter Hooks

Seit4.9.6
Veraltetn/v
apply_filters( 'theme_templates', $post_templates, $this, $post, $post_type )
Parameter: (4)
  • (string[]) $post_templates Array of template header names keyed by the template file name.
    Erforderlich: Ja
  • (WP_Theme) $theme The theme object.
    Erforderlich: Ja
  • (WP_Post|null) $post The post being edited, provided for context, or null.
    Erforderlich: Ja
  • (string) $post_type Post type to get the templates for.
    Erforderlich: Ja
Definiert in:
Codex:

Filters list of page templates for a theme.





Quellcode

$post_templates = (array) apply_filters( 'theme_templates', $post_templates, $this, $post, $post_type );