Info
- 3 posts
- 2 voices
- Started 5 years ago by LordCoder
- Latest reply from LordCoder
- This topic is resolved
Determine if its a member or an admin
-
- Posted 5 years ago #
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 .
-
- Posted 5 years ago #
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.
-
- Posted 5 years ago #
Thanks very much for your help !
-
You must log in to post.