wxr_term_description

The timeline below displays how wordpress function wxr_term_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 term_description XML tag from a given term object.
 *
 * @since 2.9.0
 *
 * @param WP_Term $term Term Object.
 */
function wxr_term_description($term)
{
    if (empty($term->description)) {
        return;
    }
    echo "\t\t<wp:term_description>" . wxr_cdata($term->description) . "</wp:term_description>\n";
}

WordPress Version: 5.6

/**
 * Output a term_description XML tag from a given term object
 *
 * @since 2.9.0
 *
 * @param WP_Term $term Term Object
 */
function wxr_term_description($term)
{
    if (empty($term->description)) {
        return;
    }
    echo "\t\t<wp:term_description>" . wxr_cdata($term->description) . "</wp:term_description>\n";
}

WordPress Version: 4.6

/**
 * Output a term_description XML tag from a given term object
 *
 * @since 2.9.0
 *
 * @param object $term Term Object
 */
function wxr_term_description($term)
{
    if (empty($term->description)) {
        return;
    }
    echo "\t\t<wp:term_description>" . wxr_cdata($term->description) . "</wp:term_description>\n";
}

WordPress Version: 3.7

/**
 * Output a term_description XML tag from a given term object
 *
 * @since 2.9.0
 *
 * @param object $term Term Object
 */
function wxr_term_description($term)
{
    if (empty($term->description)) {
        return;
    }
    echo '<wp:term_description>' . wxr_cdata($term->description) . '</wp:term_description>';
}