wxr_cdata example


    function wxr_cat_name( $category ) {
        if ( empty( $category->name ) ) {
            return;
        }

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

    /** * Outputs a category_description XML tag from a given category object. * * @since 2.1.0 * * @param WP_Term $category Category Object. */
    function wxr_category_description( $category ) {
        if ( empty( $category->description ) ) {
            
Home | Imprint | This part of the site doesn't use cookies.