wxr_tag_description( WP_Term $tag )
Outputs a tag_description XML tag from a given tag object.
Parameters
-
$tag
WP_Term Required -
Tag Object.
Source
File: wp-admin/includes/export.php
.
View all references
function wxr_tag_description( $tag ) {
if ( empty( $tag->description ) ) {
return;
}
echo '<wp:tag_description>' . wxr_cdata( $tag->description ) . "</wp:tag_description>\n";
}
Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |