wxr_category_description() – Output a category_description XML tag from a given category object

You appear to be a bot. Output may be restricted

Description

Output a category_description XML tag from a given category object

Usage

wxr_category_description( $category );

Parameters

$category
( WP_Term ) required – Category Object

Returns

void

Source

File name: wordpress/wp-admin/includes/export.php
Lines:

1 to 7 of 7
  function wxr_category_description( $category ) {
    if ( empty( $category->description ) ) {
      return;
    }

    echo '<wp:category_description>' . wxr_cdata( $category->description ) . "</wp:category_description>\n";
  }
 

 View on GitHub View on Trac