Hello,
I am sorry I am not getting what exactly you are trying to achieve here. Could you please explain with more deails? It would be great if you can share some screenshots as well to understand it better.
Thanks,
Simply I wanted to cancel a plan (for example plan 1) from the current user by an action or something else using php code.
I didn’t find anything similar in your hooks documentation.
Then I read your code and I found this trick working, if used after the plugin loaded.
global $arm_subscription_plans;
$ret=$arm_subscription_plans>arm_ajax_stop_user_subscription(get_current_user_id(),1);
Perhaps there’s a cleaner solution.
Let me know,
thanks.
Hello,
I am sorry for the delay in reply.
Yes, you can use arm_ajax_stop_user_subscription() function according to your requirements from the php code.
Thanks