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
if ( !function_exists( 'wxr_term_name' ) ) { require_once ABSPATH . PLUGINDIR . 'advanced-custom-fields/core/actions/export.php'; } // Term Object $term = null; // NOTICE! Understand what this does before running. $result = wxr_term_name($term);
Defined (1)
The function is defined in the following location(s).
- /core/actions/export.php
- function wxr_term_name( $term ) {
- if ( empty( $term->name ) )
- return;
- echo '<wp:term_name>' . wxr_cdata( $term->name ) . '</wp:term_name>';
- }