WordPress.org

Forums

Paid Memberships Pro
Show users of one level (3 posts)

  1. heatstroke
    Member
    Posted 1 year ago #

    Hi!

    I need to identify the users of one level with a conditional.

    What I need is something like this:

    if (user_is_level1) { ... } elseif ( user_is_level2) { ... } else { ... }

    How can I get the user level from the database?

    Thankyou a lot!

    Regards ;)

    http://wordpress.org/plugins/paid-memberships-pro/

  2. essaysnark
    Member
    Posted 1 year ago #

    @heatstroke, you can find code snippets on the main PMPro website:

    http://www.paidmembershipspro.com/documentation/advanced-techniques/require-membership-function/

  3. Slocum Themes
    Member
    Plugin Author

    Posted 1 year ago #

    Hi All,

    @heatstroke - If you sign up on our site for a free account, you'll get access to the PMPro documentation. We have a few methods for displaying membership content (one would be using the above link provided by @essaysnark). The others can be found here in case you're wondering: http://www.paidmembershipspro.com/documentation/content-controls/.

    @essaysnark - Thanks for providing a link again!

    Let us know if you have any other questions.

    Thank You

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Paid Memberships Pro
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.