Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jason Coleman

    (@strangerstudios)

    Use the pmpro_hasMembershipLevel() function. You can pass it a level id, or an array of level ids. If you pass nothing, it will check if the current user has any membership level.

    if(pmpro_hasMembershipLevel($level_id))
    {
    echo "this is awesome content!";
    }
    
    //or pass an array for level id and pass a specific user id
    if(pmpro_hasMembershipLevel(array(1,2,3), $user_id))
    {
    echo "this is awesome content!";
    }
    Thread Starter craftcore

    (@craftcore)

    Thanks so much! That worked great!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Paid Memberships Pro] If a certain level display suchandsuch?’ is closed to new replies.