Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,952
- How-to & Troubleshooting
- 129,225
- Creating & Extending
- 25,784
- Requests & Feedback
- 9,473
- Third Party Plugins
- 9,782
- Showcase
- 3,317
- Ideas
- 1,401
- Miscellaneous
- 9,164
-
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