tag_description

Retrieve tag description.

Description

(string) tag_description( (int) $tag = 0 ); 

Returns (string)

Tag description, available.

Parameters (1)

0. $tag — Optional. (int)
Tag ID. Will use global tag ID by default.

Usage

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

Defined (1)

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

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