resolve_block_template


resolve_block_template ( $template_type, $template_hierarchy )

Access:
  • private
Parameters:
  • (string) template_type The current template type.
  • (string[]) template_hierarchy 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:

Description

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

Related Functions

get_block_template, locate_block_template, get_block_templates, wp_enable_block_templates, register_block_core_post_template

Top Google Results

User discussions

wpseek mobile