Filters the array of queried block templates array after they've been fetched.
Parameters
$query_result\WP_Block_Template[]
Array of found block templates.
$queryarray
{ Arguments to retrieve templates. All arguments are optional. @type string[] $slug__in List of slugs to include. @type int $wp_id Post ID of customized template. @type string $area A 'wp_template_part_area' taxonomy value to filter by (for 'wp_template_part' template type only). @type string $post_type Post type to get the templates for.}
$slug__instring[]
List of slugs to include.
$wp_idint
Post ID of customized template.
$areastring
A 'wp_template_part_area' taxonomy value to filter by (for 'wp_template_part' template type only).
1204* @type int$wp_id Post ID of customized template.1205* @type string$areaA'wp_template_part_area' taxonomy value to filter by(for'wp_template_part' template type only).1206* @type string$post_type Post type to get the templates for.1207*}1208* @param string$template_type wp_template or wp_template_part.1209*/1210returnapply_filters('get_block_templates',$query_result,$query,$template_type);1211}12121213/**1214* Retrieves a single unified template object using its id.1215*1216* @since 5.8.0
History
Introduced in 5.9.0. Unchanged from 6.7.7 through 7.1.0.