tag_description()
Retrieve tag description.
Uses: term_description()
No Hooks.
Return
String
. Tag description, if available.
Usage
tag_description( $tag );
- $tag(int)
- Tag ID.
Default: current tag ID
Examples
#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() tag description code WP 6.7.1
function tag_description( $tag = 0 ) { return term_description( $tag ); }