- This topic has 2 replies, 3 voices, and was last updated 11 years, 3 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Current logged in user membership level
Is there a variable accessible from my custom php page indicating the membership level of the current logged in user? What other variables should I check to make sure their memership account is still valid?
I’d like to know the answer to this as well – I’m trying to work on a solution in the meantime so I’ll post if I find anything.
$auth = BAuth::get_instance();
if ($auth->is_logged_in()) {
echo $auth->permitted->get('alias'); // will give you membership level title
echo $auth->permitted->get('id'); // will give you membership level id
}