Removing the BuddyPress Admin Bar

I recently started developing a BuddyPress Theme/Plugin using the WordPress 3.4.2 and BuddyPress 1.6.1.

To remove the Admin Bar up at the top, you can create a file called bp-custom.php which gets thrown into wp-content/plugins. The nice thing about bp-custom.php is that you don’t need to activate it or add any special code to make it run as long as BuddyPress is activated.

So to remove the Admin Bar create bp-custom.php and add the following code:

function remove_bp_adminbar(){

After updating and refreshing the page, your admin bar should be removed. But, be careful because this can cause issues if you don’t have alternative links to log out in place.