_get_block_templates_files


_get_block_templates_files ( $template_type, $query = array() )

Access:
  • private
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:
  • 6: .

Description

Retrieves the template files from the theme.

Related Functions

_get_block_template_file, _get_block_templates_paths, get_block_templates, get_block_template, get_block_theme_folders

Top Google Results

User discussions

wpseek mobile