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. }
  • (string) template_type wp_template.
Returns:
  • (array) Templates.
Defined at:

Description

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

Related Functions

get_block_template, locate_block_template, get_home_template, get_the_block_template_html, resolve_block_template

Top Google Results

User discussions

wpseek mobile