tag_description( int $tag ): string

Retrieves tag description.


Parameters

$tag int Optional
Tag ID. Defaults to the current tag ID.

Top ↑

Return

string Tag description, if available.


Top ↑

More Information

Usage:
$description = tag_description();
Notes:

Output is wrapped in <p> tags.


Top ↑

Source

File: wp-includes/category-template.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
2.8.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.