wxr_category_description() WordPress Function

The wxr_category_description() function allows you to display a description for a given category. This can be useful for providing additional information about what a category contains.

wxr_category_description( WP_Term $category ) #

Output a category_description XML tag from a given category object


Parameters

$category

(WP_Term)(Required)Category Object


Top ↑

Source

File: wp-admin/includes/export.php

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

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


Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.