bp_force_buddybar( bool $default = true )
Should the old BuddyBar be forced in place of the WP admin bar?
Description
Parameters
- $default
-
(Optional) Fallback value if not found in the database. Default: true.
Default value: true
Return
(bool) True if the BuddyBar should be forced on, otherwise false.
Source
File: bp-core/bp-core-options.php
function bp_force_buddybar( $default = true ) { /** * Filters whether or not BuddyBar should be forced in place of WP Admin Bar. * * @since BuddyPress 1.6.0 * * @param bool $value Whether or not BuddyBar should be forced in place of WP Admin Bar. */ return (bool) apply_filters( 'bp_force_buddybar', (bool) bp_get_option( '_bp_force_buddybar', $default ) ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.6.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.