tag_description() WordPress Function
The tag_description() function is used to display the description of a given tag. This is typically used within the context of a tag archive page.
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 ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |