• Resolved stratdaz

    (@stratdaz)


    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)
  • Plugin Contributor James Koster

    (@jameskoster)

    Alternatively I could use the woocommerce_subscription_payment_complete hook and be able to determine an initial order from the subscription object.

    That’s what I’d have suggested based on my limited Subscriptions knowledge.

    If you’re a current customer I’d recommend contacting us – you’ll be put in touch with the Subscriptions support team who will be able to better respond than I can.

Viewing 1 replies (of 1 total)
  • The topic ‘Hook for Initial Order Only’ is closed to new replies.