_get_block_templates_files
- %1$s is private and should not be used in themes or plugins directly.
_get_block_templates_files ( $template_type, $query = array() )
Access:Parameters:- (string) template_type Template type. Either 'wp_template' or 'wp_template_part'.
- (array) query { Arguments to retrieve templates. Optional, empty by default. @type string[] $slug__in List of slugs to include. @type string[] $slug__not_in List of slugs to skip. @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. }
Returns:- (array|null) Template files on success, null if `$template_type` is not matched.
Defined at:Change Log: - Introduced in WordPress: 5.9.0
- Deprecated in WordPress: —
Description
Retrieves the template files from the theme.