wxr_term_description() WordPress Function
The wxr_term_description() function is used to return the description of a given term from the WordPress taxonomy. This is useful for displaying the description of a category or tag on a post or page.
wxr_term_description( WP_Term $term ) #
Output a term_description XML tag from a given term object
Parameters
- $term
(WP_Term)(Required)Term Object
Source
File: wp-admin/includes/export.php
function wxr_term_description( $term ) { if ( empty( $term->description ) ) { return; } echo "\t\t<wp:term_description>" . wxr_cdata( $term->description ) . "</wp:term_description>\n"; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |