On this page
wxr_term_description( WP_Term $term )
Outputs a term_description XML tag from a given term object.
Parameters
$termWP_Term Required-
Term Object.
Source
File: wp-admin/includes/export.php. View all references
function wxr_term_description( $term ) {
if ( empty( $term->description ) ) {
return;
}
echo "\t\t<wp:term_description>" . wxr_cdata( $term->description ) . "</wp:term_description>\n";
}
Related
Uses
| Uses | Description |
|---|---|
| wxr_cdata() wp-admin/includes/export.php | Wraps given string in XML CDATA tag. |
Used By
| Used By | Description |
|---|---|
| export_wp() wp-admin/includes/export.php | Generates the WXR export file for download. |
Changelog
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wxr_term_description