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 Optional. The template type (post type). Default 'wp_template'.
Returns:
  • (WP_Block_Template[]) Block template objects.
Defined at:

Description

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

Related Functions

get_block_template, locate_block_template, resolve_block_template, get_the_block_template_html, get_home_template

Top Google Results

User discussions

wpseek mobile