When plan activate and deactivate
-
Hello,
I’m searching for a hook for when a plan is activated and another for when it’s deactivated. I found these hooks helpful for that:
arm_user_plan_status_action_failed_payment
arm_user_plan_status_action_cancel_payment
arm_user_plan_status_action_eot
arm_deleted_subscription_plan
arm_after_user_plan_changeHowever, these are all very badly explained. I simply want to know when a member gets an active membership and when that membership is deactivate regardless if it expired, deleted, payment was canceled or failed.
Let’s say a user gets on a new membership, I can detect that with the arm_after_user_plan_change hook, and checking to see if arm_subscription_plan_status is true. Now to know when a membership is deactivated, I don’t know which hooks to use.
Does the hook arm_user_plan_status_action_failed_payment mean the membership was activated but the payment failed? What if the user just failed a renewal but still time for the membership to expire? What does the arm_user_plan_status_action_cancel_payment hook capture, the conditions are unclear.
Is there a way to simple know when a user gets an active membership, and when the user no longer has an active membership?
The topic ‘When plan activate and deactivate’ is closed to new replies.