get_block_template, $block_template, $id, $template_type
get_block_template, $block_template, $id, $template_type
Appears in: gutenberg.23.6.2
Hook Type: filter
Displaying hooks found in version: gutenberg.23.6.2apply_filters('get_block_template, $block_template, $id, $template_type') is found 1 times:
- /lib/compat/wordpress-7.0/template-activate.php line 667
* @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'. */ return apply_filters( 'get_block_template', $block_template, $id, $template_type ); } add_action( 'pre_get_block_templates', 'gutenberg_get_block_templates', 10, 3 ); /////////////////////////////////////////////////////////////////////// // This function is a copy of core's, except for the marked section. //