Description
Filters the queried block template object after it's been fetched.
Occurrences
Filename | Line Number |
---|---|
wp-includes/block-template-utils.php | 1210 |
Parameters
Type | Name | Description |
---|---|---|
WP_Block_Template|null | $block_template | The found block template, or null if there isn't one. |
string | $id | Template unique identifier (example: 'theme_slug//template_slug'). |
string | $template_type | Template type. Either 'wp_template' or 'wp_template_part'. |
PHP Doc
/**
* Filters the queried block template object after it's been fetched.
*
* @since 5.9.0
*
* @param WP_Block_Template|null $block_template The found block template, or null if there isn't one.
* @param string $id Template unique identifier (example: 'theme_slug//template_slug').
* @param string $template_type Template type. Either 'wp_template' or 'wp_template_part'.
*/