wxr_tag_description

The timeline below displays how wordpress function wxr_tag_description has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * Outputs a tag_description XML tag from a given tag object.
 *
 * @since 2.3.0
 *
 * @param WP_Term $tag Tag Object.
 */
function wxr_tag_description($tag)
{
    if (empty($tag->description)) {
        return;
    }
    echo '<wp:tag_description>' . wxr_cdata($tag->description) . "</wp:tag_description>\n";
}

WordPress Version: 5.6

/**
 * Output a tag_description XML tag from a given tag object
 *
 * @since 2.3.0
 *
 * @param WP_Term $tag Tag Object
 */
function wxr_tag_description($tag)
{
    if (empty($tag->description)) {
        return;
    }
    echo '<wp:tag_description>' . wxr_cdata($tag->description) . "</wp:tag_description>\n";
}

WordPress Version: 4.6

/**
 * Output a tag_description XML tag from a given tag object
 *
 * @since 2.3.0
 *
 * @param object $tag Tag Object
 */
function wxr_tag_description($tag)
{
    if (empty($tag->description)) {
        return;
    }
    echo '<wp:tag_description>' . wxr_cdata($tag->description) . "</wp:tag_description>\n";
}

WordPress Version: 3.7

/**
 * Output a tag_description XML tag from a given tag object
 *
 * @since 2.3.0
 *
 * @param object $tag Tag Object
 */
function wxr_tag_description($tag)
{
    if (empty($tag->description)) {
        return;
    }
    echo '<wp:tag_description>' . wxr_cdata($tag->description) . '</wp:tag_description>';
}