wxr_tag_description() WordPress Function

The wxr_tag_description() function is used to get the description of a given tag. This function can be useful when you want to display the description of a tag on your website.

wxr_tag_description( WP_Term $tag ) #

Output a tag_description XML tag from a given tag object


Parameters

$tag

(WP_Term)(Required)Tag Object


Top ↑

Source

File: wp-admin/includes/export.php

	function wxr_tag_description( $tag ) {
		if ( empty( $tag->description ) ) {
			return;
		}

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


Top ↑

Changelog

Changelog
VersionDescription
2.3.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.