Created
May 17, 2013 02:52
-
-
Save supercleanse/5596612 to your computer and use it in GitHub Desktop.
Determine if a user has an active subscription to a given product
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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