Create cron events upon new order
-
Hey there,
Really good plugin you got here. But I need to ask few questions.
I want to create new cron event for each new woocommerce order that gets created. So it would be pending_payment_{orderID} on monthly recurrence. If the order is marked with specific status (let’s say “paid”) it would delete that cron event so the user doesn’t get the message.
Questions:
1. Which hooks you have in this plugin that I could use to create this sort of thing?2.Also I saw that we can pass arguments? Does that mean that I can somehow pass the order_id to the argument so once the monthly triggers it can check for the order_id and send only to that ID and not to all the orders?(wouldn’t want to slip that issue haha).
Thank you.
- The topic ‘Create cron events upon new order’ is closed to new replies.