{"id":92317,"date":"2012-08-06T15:56:08","date_gmt":"2012-08-06T19:56:08","guid":{"rendered":"http:\/\/wpmu.org\/?p=92317"},"modified":"2013-04-15T15:50:13","modified_gmt":"2013-04-15T19:50:13","slug":"daily-tip-how-to-disable-the-wordpress-toolbar-and-revert-to-the-buddybar","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/daily-tip-how-to-disable-the-wordpress-toolbar-and-revert-to-the-buddybar\/","title":{"rendered":"How to Disable the WordPress Toolbar and Revert to the BuddyBar"},"content":{"rendered":"<p>I&#8217;m a huge fan of the new WordPress toolbar integration for the BuddyPress user menu. However, if you&#8217;ve heavily customized the BuddyBar and you&#8217;re not quite ready to switch over to the new WordPress toolbar, you can still upgrade.<\/p>\n<p>Here&#8217;s a quick snippet you can use to make sure your BuddyPress site continues to use the BuddyBar:<\/p>\n<p>{code type=php}<br \/>\n\/\/ disable the WP Toolbar and revert back to the BuddyBar<br \/>\nadd_filter( &#8216;bp_use_wp_admin_bar&#8217;, &#8216;__return_false&#8217; );<br \/>\n<\/code><\/p>\n<p>Add that code to your <a href=\"http:\/\/codex.buddypress.org\/extending-buddypress\/bp-custom-php\/\" title=\"bp-custom.php file\" target=\"_blank\">bp-custom.php<\/a> file and you&#8217;ll be good to go. More info on upgrading is also available in the <a href=\"http:\/\/codex.buddypress.org\/releases\/version-1-6\/upgrading-to-1-6\/\" title=\"BuddyPress codex - Upgrading to 1.6\" target=\"_blank\">codex<\/a>.<\/p>\n<p>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.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/08\/update-wizard.png\" alt=\"Post image\" aria-hidden=\"true\" title=\"update-wizard\" width=\"737\" height=\"257\" class=\"aligncenter size-full wp-image-92318\" \/><\/p>\n<p>Honestly, the new integration with the WordPress toolbar is great. Don&#8217;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&#8217;s new, check out our <a href=\"https:\/\/wpmudev.com\/blog\/whats-new-in-buddypress-1-6-activity-managment-akismet-integration-profile-privacy-and-more\/\" title=\"BuddyPress 1.6\" target=\"_blank\">post on BuddyPress 1.6<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Want to ensure that your BuddyPress site uses the old BuddyBar? Here&#8217;s a quick code snippet that will let you do that.<\/p>\n","protected":false},"author":4099,"featured_media":52720,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[235],"tags":[87,8822],"tutorials_categories":[],"class_list":["post-92317","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-misc","tag-menus","tag-toolbar"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/92317","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/4099"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=92317"}],"version-history":[{"count":0,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/92317\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/52720"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=92317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=92317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=92317"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=92317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}