admin管理员组

文章数量:1130349

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 0
Add a comment  | 

1 Answer 1

Reset to default 0

if 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.

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 0
Add a comment  | 

1 Answer 1

Reset to default 0

if 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.

本文标签: woocommerce offtopicaddpostmeta on subcription renewal