Filters the array of queried block templates array after they’ve been fetched.
$query_resultWP_Block_Template[]
$queryarray
slug__in string[]wp_id intarea string'wp_template_part_area' taxonomy value to filter by (for 'wp_template_part' template type only).post_type string$template_typestring
return apply_filters( 'get_block_templates', $query_result, $query, $template_type );
| Version | Description |
|---|---|
| 5.9.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_block_templates