#3085 closed defect (bug) (duplicate)
BP_DISABLE_ADMIN_BAR no longer works in BP1.2.8 + WP3.1
Reported by: | ashleylaing | Owned by: | |
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Core | Keywords: | reporter-feedback |
Cc: |
Description
I have just upgraded to WP 3.1 and BP 1.2.8. Yes, admin bar came back. So I added…
/* Remove the Admin bar */
define(‘BP_DISABLE_ADMIN_BAR’, true);
… tried it in both wp-config.php and bp-custom.php. Doesn’t appear to be working.
Has this worked for others?
Change History (5)
#3
@
14 years ago
The BP Admin Bar and the WP Admin Bar are two separate... bars ;)
The WP admin bar was introduced in WP 3.1.
BP_DISABLE_ADMIN_BAR only disables the BuddyBar.
To disable the WP admin bar, you can simply add the following in your theme's functions.php:
add_filter( 'show_admin_bar', '__return_false' );
For discussion on the BP_DISABLE_ADMIN_BAR constant, see: #3084
#4
@
14 years ago
- Resolution set to duplicate
- Status changed from new to closed
This is a duplicate of #3084.
BP_DISABLE_ADMIN_BAR, strictly speaking, still does keep the BP admin bar from showing. It just so happens that you now need to do an extra step to disable the WP admin bar, as r-a-y outlines above.
Is this the BP admin bar, or the new WP admin bar that comes with WP 3.1?