resolve_block_template


resolve_block_template ( $template_type, $template_hierarchy, $fallback_template )

Access:
  • private
Parameters:
  • (string) template_type The current template type.
  • (string[]) template_hierarchy The current template hierarchy, ordered by priority.
  • (string) fallback_template A PHP fallback template to use if no matching block template is found.
Returns:
  • (WP_Block_Template|null) template A template object, or null if none could be found.
Defined at:
Change Log:
  • 5: .

Description

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

Related Functions

_resolve_home_block_template, get_block_template, locate_block_template, get_block_templates, wp_enable_block_templates

Top Google Results

User discussions

wpseek mobile