_wp_build_title_and_description_for_single_post_type_block_template


_wp_build_title_and_description_for_single_post_type_block_template ( $post_type, $slug, $template )

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

Description

Builds the title and description of a post-specific template based on the underlying referenced post.Mutates the underlying template object.

Related Functions

_wp_build_title_and_description_for_taxonomy_block_template, wp_unregister_block_template, _resolve_home_block_template, _wp_customize_changeset_filter_insert_post_data, wp_underscore_playlist_templates

Top Google Results

User discussions

wpseek mobile