Title: Format Values as Uppercase?
Last modified: July 9, 2018

---

# Format Values as Uppercase?

 *  Resolved [wallacelin](https://wordpress.org/support/users/wallacelin/)
 * (@wallacelin)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/format-values-as-uppercase/)
 * Hello, I’m using this very useful plugin to export orders as XML to be sent via
   FTP, and need **all the values to be uppercase**. I tried to figure out the relatively
   simple PHP function to put in Misc Setting > Custom PHP code to modify output
   but couldn’t get it to work. Can I have some help in this matter? Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/format-values-as-uppercase/#post-10478738)
 * Hello
 * please, try following code.
    thanks, Alex
 *     ```
       add_filter( "woe_xml_output_filter", function($xml, $rec, $formatter) {
        return strtoupper($xml);
       },10,3);
       ```
   
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/format-values-as-uppercase/#post-10478752)
 * Sorry, previous code modifies tags too.
 * try this one
 *     ```
       add_filter( "woe_xml_prepare_record", function ($rec ) {
        array_walk_recursive($rec, function(&$item,$key){
          $item = strtoupper($item);
        });
        return $rec;
       });
       ```
   
 *  Thread Starter [wallacelin](https://wordpress.org/support/users/wallacelin/)
 * (@wallacelin)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/format-values-as-uppercase/#post-10480456)
 * Thank you, that’s perfect!
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/format-values-as-uppercase/#post-10480592)
 * you’re welcome.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Format Values as Uppercase?’ is closed to new replies.

 * ![](https://ps.w.org/woo-order-export-lite/assets/icon-256x256.png?rev=1365554)
 * [Advanced Order Export For WooCommerce](https://wordpress.org/plugins/woo-order-export-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-order-export-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-order-export-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-order-export-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-order-export-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-order-export-lite/reviews/)

## Tags

 * [format](https://wordpress.org/support/topic-tag/format/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [uppercase](https://wordpress.org/support/topic-tag/uppercase/)

 * 4 replies
 * 2 participants
 * Last reply from: [algol.plus](https://wordpress.org/support/users/algolplus/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/format-values-as-uppercase/#post-10480592)
 * Status: resolved