get_the_archive_description

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

WordPress Version: 4.9

/**
 * Retrieves the description for an author, post type, or term archive.
 *
 * @since 4.1.0
 * @since 4.7.0 Added support for author archives.
 * @since 4.9.0 Added support for post type archives.
 *
 * @see term_description()
 *
 * @return string Archive description.
 */
function get_the_archive_description()
{
    if (is_author()) {
        $description = get_the_author_meta('description');
    } elseif (is_post_type_archive()) {
        $description = get_the_post_type_description();
    } else {
        $description = term_description();
    }
    /**
     * Filters the archive description.
     *
     * @since 4.1.0
     *
     * @param string $description Archive description to be displayed.
     */
    return apply_filters('get_the_archive_description', $description);
}

WordPress Version: 4.7

/**
 * Retrieve category, tag, term, or author description.
 *
 * @since 4.1.0
 * @since 4.7.0 Added support for author archives.
 *
 * @see term_description()
 *
 * @return string Archive description.
 */
function get_the_archive_description()
{
    if (is_author()) {
        $description = get_the_author_meta('description');
    } else {
        $description = term_description();
    }
    /**
     * Filters the archive description.
     *
     * @since 4.1.0
     *
     * @param string $description Archive description to be displayed.
     */
    return apply_filters('get_the_archive_description', $description);
}

WordPress Version: 4.6

/**
 * Retrieve category, tag, or term description.
 *
 * @since 4.1.0
 *
 * @return string Archive description.
 */
function get_the_archive_description()
{
    /**
     * Filters the archive description.
     *
     * @since 4.1.0
     *
     * @see term_description()
     *
     * @param string $description Archive description to be displayed.
     */
    return apply_filters('get_the_archive_description', term_description());
}

WordPress Version: 4.1

/**
 * Retrieve category, tag, or term description.
 *
 * @since 4.1.0
 *
 * @return string Archive description.
 */
function get_the_archive_description()
{
    /**
     * Filter the archive description.
     *
     * @since 4.1.0
     *
     * @see term_description()
     *
     * @param string $description Archive description to be displayed.
     */
    return apply_filters('get_the_archive_description', term_description());
}