wordpress / latest / functions / tag_description.html

tag_description( int $tag ): string

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. View all references

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

Uses

Uses Description

Changelog

Version Description
2.8.0 Introduced.

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