• Resolved ydcphilip

    (@ydcphilip)


    I know I could output the membership level with pmpro_hasMembershipLevel()

    Can I output the level requirement of current post?

    I would like to do something like in single post

    if( pmpro_hasMembershipLevel( array( required_level())) ) {
        //display certain part of content
    }else{
        //show login form or something
    }

    Is there something like “required_level()”?

    • This topic was modified 3 years, 11 months ago by ydcphilip.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Can I output the required permission level in php?’ is closed to new replies.