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



get_block_template › WordPress Filter Hooks

Since5.9
Deprecatedn/a
apply_filters( 'get_block_template', $block_template, $id, $template_type )
Parameters: (3)
  • (WP_Block_Template) $block_template The found block template.
    Required: Yes
  • (string) $id Template unique identifier (example: theme_slug//template_slug).
    Required: Yes
  • (array) $template_type 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_template', $block_template, $id, $template_type );