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



get_block_template › WordPress Filter Hooks

Since5.9.0
Deprecatedn/a
apply_filters( 'get_block_template', $block_template, $id, $template_type )
Parameters: (3)
  • (WP_Block_Template|null) $block_template The found block template, or null if there isn't one.
    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 queried block template object after it's been fetched.





Source

return apply_filters( 'get_block_template', $block_template, $id, $template_type );