wpseek.com
A WordPress-centric search engine for devs and theme authors



get_block_templates › WordPress Filter Hooks

Since5.9
Deprecatedn/a
apply_filters( 'get_block_templates', $query_result, $query, $template_type )
Parameters: (3)
  • (WP_Block_Template[]) $query_result Array of found block templates.
    Required: Yes
  • (array) $query { Optional. Arguments to retrieve templates. @type array $slug__in List of slugs to include. @type int $wp_id Post ID of customized template. }
    Required: Yes
  • (array) $template_type wp_template or wp_template_part.
    Required: Yes
Defined at:
Codex:

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





Source

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