apply_filters( ‘get_block_template’, WP_Block_Template|null $block_template, string $id, array $template_type )

In this article

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

Parameters

$block_templateWP_Block_Template|null
The found block template, or null if there isn’t one.
$idstring
Template unique identifier (example: 'theme_slug//template_slug').
$template_typearray
Template type: 'wp_template' or 'wp_template_part'.

Source

return apply_filters( 'get_block_template', $block_template, $id, $template_type );

Changelog

VersionDescription
5.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.