Determine user's subscription status

200 Views Asked by At

I work on a project that uses Lite API (https://www.amember.com/docs/API/Lite).

I have a page where users can add their content. I need to be able to determine users' subscription status, i.e. whether they have any active subscription, paid or free (not expired), when I view their content. Is it possible to use Lite API for that? If yes, if I know the user ID, how would I pass it into something like this:

if (Am_Lite::getInstance()->haveSubscriptions(Am_Lite::ANY)) {
  // has active subscription...
}

Thanks

0

There are 0 best solutions below