wxr_category_description

The timeline below displays how wordpress function wxr_category_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 category_description XML tag from a given category object.
 *
 * @since 2.1.0
 *
 * @param WP_Term $category Category Object.
 */
function wxr_category_description($category)
{
    if (empty($category->description)) {
        return;
    }
    echo '<wp:category_description>' . wxr_cdata($category->description) . "</wp:category_description>\n";
}

WordPress Version: 5.6

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

WordPress Version: 4.6

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

WordPress Version: 3.7

/**
 * Output a category_description XML tag from a given category object
 *
 * @since 2.1.0
 *
 * @param object $category Category Object
 */
function wxr_category_description($category)
{
    if (empty($category->description)) {
        return;
    }
    echo '<wp:category_description>' . wxr_cdata($category->description) . '</wp:category_description>';
}