Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Hide admin bar to subscriber role?

Try putting something like this in /plugins/bp-custom.php:

<?php
if ( is_user_logged_in() ) {
$user_roles = wp_get_current_user();
$user_roles = $user_roles->roles;

if ( empty( $user_roles ) || in_array( 'subscriber', $user_roles ) )
define( 'BP_DISABLE_ADMIN_BAR', true );
}
?>

Skip to toolbar