How to Disable the WordPress Toolbar and Revert to the BuddyBar

How to Disable the WordPress Toolbar and Revert to the BuddyBar

I’m a huge fan of the new WordPress toolbar integration for the BuddyPress user menu. However, if you’ve heavily customized the BuddyBar and you’re not quite ready to switch over to the new WordPress toolbar, you can still upgrade.

Here’s a quick snippet you can use to make sure your BuddyPress site continues to use the BuddyBar:

{code type=php}
// disable the WP Toolbar and revert back to the BuddyBar
add_filter( ‘bp_use_wp_admin_bar’, ‘__return_false’ );

Add that code to your bp-custom.php file and you’ll be good to go. More info on upgrading is also available in the codex.

FREE EBOOK
Your step-by-step roadmap to a profitable web dev business. From landing more clients to scaling like crazy.

By downloading this ebook I consent to occasionally receive emails from WPMU DEV.
We keep your email 100% private and do not spam.

FREE EBOOK
Plan, build, and launch your next WP site without a hitch. Our checklist makes the process easy and repeatable.

By downloading this ebook I consent to occasionally receive emails from WPMU DEV.
We keep your email 100% private and do not spam.

Of course, the easiest way is to check the box in the Update Wizard that allows you to keep your BuddyBar, but if you somehow miss that, you can use the code above.

Honestly, the new integration with the WordPress toolbar is great. Don’t use the old BuddyBar unless you absolutely have to! Your users will get used to the new menu in no time and will probably thank you for it. For more information on everything else that’s new, check out our post on BuddyPress 1.6.

Tags: