W3cubDocs

/WordPress

tag_description( int $tag )

Retrieves tag description.

Parameters

$tag

(int) (Optional) Tag ID. Defaults to the current tag ID.

Return

(string) Tag description, if available.

More Information

Usage:
$description = tag_description();
Notes:

Output is wrapped in <p> tags.

Source

File: wp-includes/category-template.php

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

Changelog

Version Description
2.8.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/tag_description