wxr_term_name

Output a term_name XML tag from a given term object.

Description

wxr_term_name( (object) $term ); 

Parameters (1)

0. $term (object)
Term Object

Usage

  1. if ( !function_exists( 'wxr_term_name' ) ) { 
  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_name($term); 
  9.  

Defined (1)

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

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