Get WooCommerce API V1 Response in XML

Not a common request but here a quick snippet that will allow you return the WooCommerce API V1 response in XML instead of JSON. Please note that REST API V2 does NOT allow you to get results in XML.

Simply place that snippet in functions.php in your theme folder:

Leave a Reply