I'm able to add/edit custom fields after a user completes an order with the add_action('woocommerce_thankyou', 'function_name_here', 10, 1);
hook. Does this also apply when a subscription auto renews or is there another action hook that should be used?
Thanks
I'm able to add/edit custom fields after a user completes an order with the add_action('woocommerce_thankyou', 'function_name_here', 10, 1);
hook. Does this also apply when a subscription auto renews or is there another action hook that should be used?
Thanks
Share Improve this question asked Nov 21, 2018 at 10:49 LhenLhen 32 bronze badges 01 Answer
Reset to default 0if you are using subscriptions plugin, then all the actions are listed here : https://docs.woocommerce/document/subscriptions/develop/action-reference/
i think it woocommerce_subscription_renewal_payment_complete
that you are looking for.