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

  1. if ( !function_exists( 'category_description' ) ) { 
  2. require_once ABSPATH . WPINC . '/category-template.php'; 
  3.  
  4. // Optional. Category ID. Will use global category ID by default. 
  5. $category = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = category_description($category); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/category-template.php  
  1. function category_description( $category = 0 ) { 
  2. return term_description( $category, 'category' );