Get WooCommerce API V1 Response in XML

Remi | August 17, 2015 | in Tutorials

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:

The author

About the author Remi: Hey! My name is RĂ©mi Corson, i'm a WordPress Expert Developer, i create high level themes and plugins, and i provide free stuff every week on this website!

Leave a reply