tag_description()WP 2.8.0

Retrieve tag description.

No Hooks.

Return

String. Tag description, if available.

Usage

tag_description( $tag );
$tag(int)
Tag ID.
Default: current tag ID

Examples

1

#1 Display the description of the tag with ID 56:

<?php echo 'Tag description: ' . tag_description( '56' ); ?>

Changelog

Since 2.8.0 Introduced.

tag_description() code WP 6.5.3

function tag_description( $tag = 0 ) {
	return term_description( $tag );
}