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



theme_{$post_type}_templates › WordPress Filter Hooks

Da4.7.0
Deprecaton/a
› apply_filters( "theme_{$post_type}_templates", $post_templates, $this, $post, $post_type )
Parametri: (4)
  • () post_templates Array of template header names keyed by the template file name.
    Richiesto: Sì
  • () theme The theme object.
    Richiesto: Sì
  • () post The post being edited, provided for context, or null.
    Richiesto: Sì
  • () post_type Post type to get the templates for.
    Richiesto: Sì
Definito a:
Codex:

Filters list of page templates for a theme.

The dynamic portion of the hook name, `$post_type`, refers to the post type. Possible hook names include: - `theme_post_templates` - `theme_page_templates` - `theme_attachment_templates`




Sorgenti

$post_templates = (array) apply_filters( "theme_{$post_type}_templates", $post_templates, $this, $post, $post_type );