Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,006
- How-to & Troubleshooting
- 129,530
- Creating & Extending
- 25,790
- Requests & Feedback
- 9,496
- Third Party Plugins
- 9,784
- Showcase
- 3,316
- Ideas
- 1,398
- Miscellaneous
- 9,170
-
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