_build_block_template_result_from_file


_build_block_template_result_from_file ( $template_file, $template_type )

Access:
  • private
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:
  • 6: .

Description

Builds a unified template object based on a theme file.

Related Functions

_build_block_template_result_from_post, _build_block_template_object_from_post_object, _filter_block_template_part_area, _get_block_templates_files, _get_block_template_file

Top Google Results

User discussions

wpseek mobile