woocommerce offtopic - add_post_meta on subcription renewal

admin2025-06-06  7

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.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749163270a316898.html

最新回复(0)