resolve_block_template


resolve_block_template ( $template_type, $template_hierarchy )

Access:
  • private
Parameters:
  • (string) template_type The current template type.
  • (string[]) template_hierarchy (optional) The current template hierarchy, ordered by priority.
Returns:
  • (WP_Block_Template|null) template A template object, or null if none could be found.
Defined at:
Change Log:
  • A: c

Description

Return the correct 'wp_template' to render for the request template type.

Related Functions

get_block_template, locate_block_template, get_block_templates, get_the_block_template_html, register_block_core_post_template

Top Google Results

User discussions

wpseek mobile