apply_filters( 'get_block_templates', WP_Block_Template[] $query_result , array $query , string $template_type )
Filters the array of queried block templates array after they’ve been fetched.
Parameters
-
$query_result
WP_Block_Template[] -
Array of found block templates.
-
$query
array -
Arguments to retrieve templates.
slug__in
arrayList of slugs to include.wp_id
intPost ID of customized template.
-
$template_type
string -
wp_template or wp_template_part.
Source
File: wp-includes/block-template-utils.php
.
View all references
return apply_filters( 'get_block_templates', $query_result, $query, $template_type );
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |