wxr_tag_description() WordPress Function
The wxr_tag_description() function is used to get the description of a given tag. This function can be useful when you want to display the description of a tag on your website.
wxr_tag_description( WP_Term $tag ) #
Output a tag_description XML tag from a given tag object
Parameters
- $tag
(WP_Term)(Required)Tag Object
Source
File: wp-admin/includes/export.php
function wxr_tag_description( $tag ) {
if ( empty( $tag->description ) ) {
return;
}
echo '<wp:tag_description>' . wxr_cdata( $tag->description ) . "</wp:tag_description>\n";
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |