Skip to:
Content
Pages
Categories
Search
Top
Bottom

Determine if its a member or an admin

  • @lordcoder

    Member

    Hi ,

    how to determine if its a member or an admin ( by admin , i mean the administrator and keymaster levels ) ?

    if not , where can i find a good documentation about bbpress template tags like wordpress’ one ?

    TFYT .

Viewing 2 replies - 1 through 2 (of 2 total)
  • @mdawaffe

    Member

    try

    if ( bb_current_user_can( 'administrate' ) ) {

    // do something

    } else {

    // do something else

    }

    If you look in bb-includes/capabilities.php, you’ll see a list of available capabilities you an check for, if you want more fine grained control than the above.

    @lordcoder

    Member

    Thanks very much for your help !

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar