add_action ‘woocommerce_thankyou’ action from a plugin
-
Hi, I use the add_action(‘woocommerce_thankyou’,’funcction to execute’ to hook an action when registering a new order .. it works perfectly if I put it in the function.php but I don’t know how to hook the same function by extending woocommerce with a plugin.
My goal is to call a synch task with an external ERP to update the stock of the product just purchased.
Thanks for any advice
regards
ad
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘add_action ‘woocommerce_thankyou’ action from a plugin’ is closed to new replies.