wordpress / latest / functions / category_description.html

category_description( int $category ): string

Retrieves category description.

Parameters

$category int Optional
Category ID. Defaults to the current category ID.

Return

string Category description, if available.

More Information

If used in the archive.php template, place this function within the is_category() conditional statement.
Otherwise, this function will stop the processing of the page for monthly and other archive pages.

Source

File: wp-includes/category-template.php. View all references

function category_description( $category = 0 ) {
	return term_description( $category );
}

Uses

Uses Description

Changelog

Version Description
1.0.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/category_description