wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



theme_templates › WordPress Filter Hooks

Da4.9.6
Deprecaton/a
apply_filters( 'theme_templates', $post_templates, $this, $post, $post_type )
Parametri: (4)
  • (string[]) $post_templates Array of template header names keyed by the template file name.
    Richiesto:
  • (WP_Theme) $theme The theme object.
    Richiesto:
  • (WP_Post|null) $post The post being edited, provided for context, or null.
    Richiesto:
  • (string) $post_type Post type to get the templates for.
    Richiesto:
Definito a:
Codex:

Filters list of page templates for a theme.





Sorgenti

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