Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Private Portal with BuddyPress

@henrywright-1

Member

Try this

<?php

   $user_id = bp_loggedin_user_id(); 
   $user = new WP_User( $user_id );
   
   if ( $user->roles[0] != 'administrator' ) {
     // your code
   }

?>
Skip to toolbar