wp-includes/blocks/term-description.php:19core/term-description block on the server.$attributesarray$contentstring$blockWP_Blockstringfunction render_block_core_term_description( $attributes, $content, $block ) { $term_description = ''; // Get term from context or from the current query. if ( isset( $block->context['termId'] ) && isset( $block->context['taxonomy'] ) ) { $term = get_term( $block->context['termId'], $block->context['taxonomy'] ); if ( $term && ! is_wp_error( $term ) ) { $term_description = $term->description; } } elseif ( is_category() || is_tag() || is_tax() ) { $term_description = term_description(); } if ( empty( $term_description ) ) { return ''; } $classes = array(); if ( isset( $attributes['textAlign'] ) ) { $classes[] = 'has-text-align-' . $attributes['textAlign']; } if ( isset( $attributes['style']['elements']['link']['color']['text'] ) ) { $classes[] = 'has-link-color'; } $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => implode( ' ', $classes ) ) ); return '<div ' . $wrapper_attributes . '>' . $term_description . '</div>';}Introduced in 5.9.0. 2 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$content added.verified against source$block added.verified against sourcesrc/wp-includes/blocks/term-description.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.