wxr_term_description

Output a term_description XML tag from a given term object.

Description

wxr_term_description( (object) $term ); 

Parameters (1)

0. $term (object)
Term Object

Usage

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

Defined (1)

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

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