wordpress / latest / functions / wxr_term_name.html

wxr_term_name( WP_Term $term )

Outputs a term_name XML tag from a given term object.

Parameters

$term WP_Term Required
Term Object.

Source

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

function wxr_term_name( $term ) {
	if ( empty( $term->name ) ) {
		return;
	}

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

Uses

Uses Description

Used By

Used By Description

Changelog

Version Description
2.9.0 Introduced.

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