get_the_archive_description()

Retrieve category, tag, term, or author description.


Description Description


Return Return

(string) Archive description.


Top ↑

Source Source

File: wp-includes/general-template.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
4.7.0 Added support for author archives.
4.1.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.