resolve_block_template
- %1$s is private and should not be used in themes or plugins directly.
resolve_block_template ( $template_type, $template_hierarchy, $fallback_template )
Access: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: - Introduced in WordPress: 5.8.0
- Deprecated in WordPress: —
Description
Returns the correct 'wp_template' to render for the request template type.