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);
}