wxr_cat_name() WordPress Function

The wxr_cat_name() function is used to retrieve the name of a category from a WordPress installation. The name is retrieved from the database and is cached for performance.

wxr_cat_name( WP_Term $category ) #

Output a cat_name XML tag from a given category object


Parameters

$category

(WP_Term)(Required)Category Object


Top ↑

Source

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";
	}


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.