Conditionals for Member Levels

Are there any conditionals that I can test against to check a user's membership level? Similar to the way WordPress is_user_logged_in() and current_user_can(); work?

  • DavidM
    • DEV MAN’s Mascot

    Hi chriswallace and welcome to WPMU DEV!

    Glad you're taking a look at customizing one of my most favoritest plugins! :slight_smile:

    And yup, you can try any of the following for your customization needs:
    current_user_is_member()
    current_user_on_level($level_id)
    current_user_on_subscription($sub_id)

    And of course, you can get the level_id and sub_id from the respective membership level and subscription lists.

    Cheers!
    David

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.