wxr_category_description( WP_Term $category )

In this article

Outputs a category_description XML tag from a given category object.

Parameters

$categoryWP_Termrequired
Category Object.

Source

function wxr_category_description( $category ) {
	if ( empty( $category->description ) ) {
		return;
	}

	echo '<wp:category_description>' . wxr_cdata( $category->description ) . "</wp:category_description>\n";
}

Changelog

VersionDescription
2.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.