_build_block_template_result_from_file
- %1$s is private and should not be used in themes or plugins directly.
_build_block_template_result_from_file ( $template_file, $template_type )
Access:Parameters:- (array) template_file Theme file.
- (string) template_type Template type. Either 'wp_template' or 'wp_template_part'.
Returns:- (WP_Block_Template) Template.
Defined at:Change Log: - Introduced in WordPress: 5.9.0
- Deprecated in WordPress: —
Description
Builds a unified template object based on a theme file.