wxr_tag_description

Output a tag_description XML tag from a given tag object.

Description

wxr_tag_description( (object) $tag ); 

Parameters (1)

0. $tag (object)
Tag Object

Usage

  1. if ( !function_exists( 'wxr_tag_description' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'advanced-custom-fields/core/actions/export.php'; 
  3.  
  4. // Tag Object 
  5. $tag = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wxr_tag_description($tag); 
  9.  

Defined (1)

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

/core/actions/export.php  
  1. function wxr_tag_description( $tag ) { 
  2. if ( empty( $tag->description ) ) 
  3. return; 
  4.  
  5. echo '<wp:tag_description>' . wxr_cdata( $tag->description ) . '</wp:tag_description>';