get_block_template – filter

Filters the queried block template object after it’s been fetched. 

Parameters

.
( 5.9.0 ) . .
$block_template
( WP_Block_Template|null ) The found block template, or null if there isn’t one. . . .
( string ) $id Template unique identifier (example: theme_slug//template_slug). . . .
( array ) $template_type Template type: `’wp_template’` or ‘`wp_template_part’`. . . .
API Letters: ,,

Implementers