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:

About the author

Remi Hey! My name is Rémi Corson, I'm a French WordPress Developer, I code stuff and I write from time to time ;-) Buy a coffee
Show your support

Related Posts


Leave a Reply