_build_block_template_object_from_post_object


_build_block_template_object_from_post_object ( $post, $terms = array(), $meta = array() )

Access:
  • private
Parameters:
  • (WP_Post) post Template post.
  • (array) terms Additional terms to inform the template object.
  • (array) meta Additional meta fields to inform the template object.
Returns:
  • (WP_Block_Template|WP_Error) Template or error object.
Defined at:

Description

Builds a block template object from a post object.This is a helper function that creates a block template object from a given post object. It is self-sufficient in that it only uses information passed as arguments; it does not query the database for additional information.

Related Functions

_build_block_template_result_from_post, _build_block_template_result_from_file, _filter_block_template_part_area, _block_template_viewport_meta_tag, _add_block_template_info

Top Google Results

User discussions

wpseek mobile