wxr_tag_name( WP_Term $tag )

In this article

Outputs a tag_name XML tag from a given tag object.

Parameters

$tagWP_Termrequired
Tag Object.

Source

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

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

Changelog

VersionDescription
2.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.