Hook for Initial Order Only
-
I’m using Woocommerce Subscriptions and need to call an external API when a user signs up.
I need this to happen ONLY on the first order and NOT on renewal orders.
I know about the ‘woocommerce_subscription_payment_complete’ hook which fires on all orders. And the ‘woocommerce_subscription_renewal_payment_complete’ which fires only on renewal orders.
But I want something like ‘woocommerce_subscription_initial_payment_complete’ but unfortunately this does not exist.
Alternatively I could use the ”woocommerce_subscription_payment_complete’ hook and be able to determine an initial order from the subscription object.
Any help appreciated.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Hook for Initial Order Only’ is closed to new replies.