wxr_tag_name() WordPress Function
This function retrieves the name of a tag given its ID. Tag names are used to identify tags within WordPress. Each tag is given a unique ID, which is used by this function to retrieve the name of the tag. This function is useful for displaying the name of a tag on a website, or for retrieving the name of a tag for use in programming.
wxr_tag_name( WP_Term $tag ) #
Output a tag_name XML tag from a given tag object
Parameters
- $tag
(WP_Term)(Required)Tag Object
Source
File: wp-admin/includes/export.php
function wxr_tag_name( $tag ) { if ( empty( $tag->name ) ) { return; } echo '<wp:tag_name>' . wxr_cdata( $tag->name ) . "</wp:tag_name>\n"; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |