#3085 closed defect (bug) (duplicate)
BP_DISABLE_ADMIN_BAR no longer works in BP1.2.8 + WP3.1
| Reported by: | ashleylaing | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5 |
| Component: | Core | Version: | |
| Severity: | normal | 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
@
16 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
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Is this the BP admin bar, or the new WP admin bar that comes with WP 3.1?