wordpress / latest / functions / wxr_tag_name.html

wxr_tag_name( WP_Term $tag )

Outputs a tag_name XML tag from a given tag object.

Parameters

$tag WP_Term Required
Tag Object.

Source

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

function wxr_tag_name( $tag ) {
	if ( empty( $tag->name ) ) {
		return;
	}

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

Uses

Uses Description

Used By

Used By Description

Changelog

Version Description
2.3.0 Introduced.

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