Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author reputeinfosystems

    (@reputeinfosystems)

    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,

    Thread Starter emilian0

    (@emilian0)

    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.

    Plugin Author reputeinfosystems

    (@reputeinfosystems)

    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

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remove plan from user in php’ is closed to new replies.