skip to Main Content

I’m trying to get the subscription ID(s) for the current user in MemberPress. Can’t find any examples of this in the documentation.

3

Answers


  1. Something like this should work:

    $user = new MeprUser( get_current_user_id());
    
    $subscriptions = $user->active_product_subscriptions('ids');
    
    Login or Signup to reply.
  2. $active_subscription_ids = MeprUtils::get_currentuserinfo()->active_product_subscriptions('ids');

    Login or Signup to reply.
  3. $user = get_current_user_id();
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search