get_block_file_template, null, $id, $template_type
get_block_file_template, null, $id, $template_type
Appears in: 7.0.3
Hook Type: filter
Displaying hooks found in version: 7.0.3apply_filters('get_block_file_template, null, $id, $template_type') is found 1 times:
- /wp-includes/block-template-utils.php line 1384
$parts = explode( ‘//’, $id, 2 );
if ( count( $parts ) < 2 ) { /** This filter is documented in wp-includes/block-template-utils.php */ return apply_filters( 'get_block_file_template', null, $id, $template_type ); } list( $theme, $slug ) = $parts; if ( get_stylesheet() === $theme ) { $template_file = _get_block_template_file( $template_type, $slug ); if ( null !== $template_file ) { [/php]