wxr_term_name( WP_Term $term )

In this article

Outputs a term_name XML tag from a given term object.

Parameters

$termWP_Termrequired
Term Object.

Source

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

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

Changelog

VersionDescription
2.9.0Introduced.

User Contributed Notes

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