This maybe a daft question, but I couldn't find the answer (see here & here for related/unanswered questions)
What I am trying to do:
I would like to programmatically make coupons for use by Woocommerce and found the reference code here: http://docs.woothemes.com/document/create-a-coupon-programatically/
But how to actually hook this up to the WordPress core so that they are created?
Is there a specific WordPress file or files that I need to include so that I can run these actions?
Note: This is for standalone code so that I can add more when I need to.