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



get_block_templates › WordPress Filter Hooks

Seit5.9.0
Veraltetn/v
apply_filters( 'get_block_templates', $query_result, $query, $template_type )
Parameter: (3)
  • (WP_Block_Template[]) $query_result Array of found block templates.
    Erforderlich: Ja
  • (array) $query { Arguments to retrieve templates. All arguments are optional. @type string[] $slug__in List of slugs to include. @type int $wp_id Post ID of customized template. @type string $area A 'wp_template_part_area' taxonomy value to filter by (for 'wp_template_part' template type only). @type string $post_type Post type to get the templates for. }
    Erforderlich: Ja
  • (string) $template_type wp_template or wp_template_part.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the array of queried block templates array after they've been fetched.





Quellcode

return apply_filters( 'get_block_templates', $query_result, $query, $template_type );