_wp_build_title_and_description_for_single_post_type_block_template
- %1$s is private and should not be used in themes or plugins directly.
_wp_build_title_and_description_for_single_post_type_block_template ( $post_type, $slug, $template )
Access:Parameters:- (string) post_type Post type, e.g. page, post, product.
- (string) slug Slug of the post, e.g. a-story-about-shoes.
- (WP_Block_Template) template Template to mutate adding the description and title computed.
Returns:- (bool) Returns true if the referenced post was found and false otherwise.
Defined at: - Introduced in WordPress: 6.1.0
- Deprecated in WordPress: —
Description
Builds the title and description of a post-specific template based on the underlying referenced post.Mutates the underlying template object.