WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about get_block_templates

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/block-template-utils.php apply_filters 1001 /**
* Filters the array of queried block templates array after they've been fetched.
*
* @since 5.9.0
*
* @param WP_Block_Template[] $query_result Array of found block templates.
* @param array $query {
* Optional. Arguments to retrieve templates.
*
* @type array $slug__in List of slugs to include.
* @type int $wp_id Post ID of customized template.
* }
* @param string $template_type wp_template or wp_template_part.
*/

Hook Parameters

Parameter Type Name Description
WP_Block_Template[] $query_result Array of found block templates.
array $quer y {
string $template_type wp_template or wp_template_part.