Fetch Woocommerce order information when an order is placed using PHP

I recently needed to generate an XML file (Yes, an XML file, don’t ask why) for every order placed on a WordPress and Woocommerce based website. Wow.. headaches for ages thanks to using the incorrect Woocommerce hook but I’ll get into that in the tutorial. Let’s start with some basics… Understanding Hooks There are two […]