Skip to content

Instantly share code, notes, and snippets.

@supercleanse
Created May 17, 2013 02:52
Show Gist options
  • Select an option

  • Save supercleanse/5596612 to your computer and use it in GitHub Desktop.

Select an option

Save supercleanse/5596612 to your computer and use it in GitHub Desktop.
Determine if a user has an active subscription to a given product
<?php
if( $mepr_user = MeprUtils::get_currentuserinfo() and $mepr_user->is_already_subscribed_to($product_id) ) {
// Do something cool if the user is actively subscribed to a product
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment