_build_block_template_object_from_post_object
- %1$s is private and should not be used in themes or plugins directly.
_build_block_template_object_from_post_object ( $post, $terms = array(), $meta = array() )
Access: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: - Introduced in WordPress: 6.5.3
- Deprecated in WordPress: —
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.