Filters the block template object after it has been (potentially) fetched from the theme file.
Parameters
$block_templateWP_Block_Template|null- The found block template, or null if there is none.
$idstring- Template unique identifier (example:
'theme_slug//template_slug'). $template_typestring- Template type. Either
'wp_template'or'wp_template_part'.
Source
return apply_filters( 'get_block_file_template', $block_template, $id, $template_type );
Changelog
| Version | Description |
|---|---|
| 5.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.