Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

Current logged in user membership level

Simple Membership Plugin › Forums › Simple Membership Plugin › Current logged in user membership level

  • This topic has 2 replies, 3 voices, and was last updated 11 years, 3 months ago by nur.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 16, 2014 at 12:00 pm #707
    nocleats
    Participant

    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?

    January 12, 2015 at 11:22 am #813
    lewsj
    Participant

    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.

    January 14, 2015 at 12:23 am #820
    nur
    Participant
            $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
            }
    
  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy