pre_get_block_template, null, $id, $template_type
pre_get_block_template, null, $id, $template_type
Appears in: 7.0.3
Hook Type: filter
Displaying hooks found in version: 7.0.3apply_filters('pre_get_block_template, null, $id, $template_type') is found 1 times:
- /wp-includes/block-template-utils.php line 1301
* or null to allow WP to run its normal queries.
* @param string $id Template unique identifier (example: ‘theme_slug//template_slug’).
* @param string $template_type Template type. Either ‘wp_template’ or ‘wp_template_part’.
*/
$block_template = apply_filters( ‘pre_get_block_template’, null, $id, $template_type );
if ( ! is_null( $block_template ) ) {
return $block_template;
}$parts = explode( ‘//’, $id, 2 );
if ( count( $parts ) < 2 ) { [/php]