wxr_term_name() WordPress Function

The wxr_term_name() function is used to get the name of a term from a WordPress taxonomy.

wxr_term_name( WP_Term $term ) #

Output a term_name XML tag from a given term object


Parameters

$term

(WP_Term)(Required)Term Object


Top ↑

Source

File: wp-admin/includes/export.php

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

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


Top ↑

Changelog

Changelog
VersionDescription
2.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.