category_description
Retrieve category description.
Description
(string) category_description( (int) $category = 0 );
Returns (string)
Category description, available.
Parameters (1)
- 0. $category — Optional. (int)
- Category ID. Will use global category ID by default.
Usage
if ( !function_exists( 'category_description' ) ) { require_once ABSPATH . WPINC . '/category-template.php'; } // Optional. Category ID. Will use global category ID by default. $category = -1; // NOTICE! Understand what this does before running. $result = category_description($category);
Defined (1)
The function is defined in the following location(s).
- /wp-includes/category-template.php
- function category_description( $category = 0 ) {
- return term_description( $category, 'category' );
- }