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.