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 array
    List of slugs to include.
  • wp_id int
    Post ID of customized template.
$template_type string
wp_template or wp_template_part.

Top ↑

Source

File: wp-includes/block-template-utils.php. View all references

return apply_filters( 'get_block_templates', $query_result, $query, $template_type );


Top ↑

Changelog

Changelog
Version Description
5.9.0 Introduced.

Top ↑

User Contributed Notes

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