Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,199
- How-to & Troubleshooting
- 126,995
- Creating & Extending
- 25,540
- Requests & Feedback
- 9,263
- Third Party Plugins
- 9,659
- Showcase
- 3,317
- Ideas
- 1,295
- Miscellaneous
- 8,713
-
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 );
}
?>
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS