get_block_templates


get_block_templates ( $query = array(), $template_type = 'wp_template' )

Parameters:
  • (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. @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. }
  • (array) template_type 'wp_template' or 'wp_template_part'.
Returns:
  • (array) Templates.
Defined at:

Description

Retrieves a list of unified template objects based on a query.

Related Functions

get_block_template, get_block_file_template, _get_block_template_file, _get_block_templates_files, _get_block_templates_paths

Top Google Results

User discussions

wpseek mobile