WooCommerce: Work Out the First Action a Global Variable Can Be Accessed From

WooCommerce uses a number of global variables, if you’ve spent any time looking at code snippets then you’ll often see code like this global $product; Which is used to get a reference to the current product that is being displayed, typically on the shop screen or the single product page. Recently whilst looking through the … Read more