WPDev.one
Core Function
View Source on Trac ↗

_wp_build_title_and_description_for_taxonomy_block_template()

_wp_build_title_and_description_for_taxonomy_block_template( mixed $taxonomy, mixed $slug, WP_Block_Template $template )

Builds the title and description of a taxonomy-specific template based on the underlying entity referenced.

Parameters 3 required

Name / Type Description
$taxonomy
string

Identifier of the taxonomy, e.g. category.

Required
$slug
string

Slug of the term, e.g. shoes.

Required
$template
WP_Block_Template

Template to mutate adding the description and title computed.

Required

Return Value

(bool)
True if the term referenced was found and false otherwise.

Function Information

Since Version
6.1.0
Source File
wp-includes/block-template-utils.php
Advertisement