the_archive_description

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

WordPress Version: 6.1

/**
 * Displays category, tag, term, or author description.
 *
 * @since 4.1.0
 *
 * @see get_the_archive_description()
 *
 * @param string $before Optional. Content to prepend to the description. Default empty.
 * @param string $after  Optional. Content to append to the description. Default empty.
 */
function the_archive_description($before = '', $after = '')
{
    $description = get_the_archive_description();
    if ($description) {
        echo $before . $description . $after;
    }
}

WordPress Version: 4.7

/**
 * Display category, tag, term, or author description.
 *
 * @since 4.1.0
 *
 * @see get_the_archive_description()
 *
 * @param string $before Optional. Content to prepend to the description. Default empty.
 * @param string $after  Optional. Content to append to the description. Default empty.
 */
function the_archive_description($before = '', $after = '')
{
    $description = get_the_archive_description();
    if ($description) {
        echo $before . $description . $after;
    }
}

WordPress Version: 4.1

/**
 * Display category, tag, or term description.
 *
 * @since 4.1.0
 *
 * @see get_the_archive_description()
 *
 * @param string $before Optional. Content to prepend to the description. Default empty.
 * @param string $after  Optional. Content to append to the description. Default empty.
 */
function the_archive_description($before = '', $after = '')
{
    $description = get_the_archive_description();
    if ($description) {
        echo $before . $description . $after;
    }
}