Uses
Uses | Description |
---|---|
wp-admin/includes/export.php: wxr_cdata() | Wrap given string in XML CDATA tag. |
Output a cat_name XML tag from a given category object
(object) (Required) Category Object
File: wp-admin/includes/export.php
function wxr_cat_name( $category ) { if ( empty( $category->name ) ) { return; } echo '<wp:cat_name>' . wxr_cdata( $category->name ) . "</wp:cat_name>\n"; }
Version | Description |
---|---|
2.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wxr_cat_name