wordpress / latest / functions / wxr_cat_name.html

wxr_cat_name( WP_Term $category )

Outputs a cat_name XML tag from a given category object.

Parameters

$category WP_Term Required
Category Object.

Source

File: wp-admin/includes/export.php. View all references

function wxr_cat_name( $category ) {
	if ( empty( $category->name ) ) {
		return;
	}

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

Uses

Uses Description

Used By

Used By Description

Changelog

Version Description
2.1.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wxr_cat_name