wxr_term_name() WordPress Function
The wxr_term_name() function is used to get the name of a term from a WordPress taxonomy.
wxr_term_name( WP_Term $term ) #
Output a term_name XML tag from a given term object
Parameters
- $term
(WP_Term)(Required)Term Object
Source
File: wp-admin/includes/export.php
function wxr_term_name( $term ) {
if ( empty( $term->name ) ) {
return;
}
echo '<wp:term_name>' . wxr_cdata( $term->name ) . "</wp:term_name>\n";
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |