从给定的类别对象输出category_description XML标记

原型

wxr_category_description( object $category )

参数

$category (object) (Required) 类别对象

源文件

路径:wp-admin/includes/export.php

<?php
...
	function wxr_category_description( $category ) {
		if ( empty( $category->description ) )
			return;
		echo '<wp:category_description>' . wxr_cdata( $category->description ) . "</wp:category_description>n";
	}
...
?>

其他

英文文档:https://developer.wordpress.org/reference/functions/wxr_category_description/