This function has been deprecated. BuddyPress 2.1.0 instead.
bp_admin_sanitize_callback_force_buddybar( $value = false )
Sanitization for _bp_force_buddybar
Description
If upgraded to 1.6 and you chose to keep the BuddyBar, a checkbox asks if you want to switch to the WP Toolbar. The option we store is 1 if the BuddyBar is forced on, so we use this function to flip the boolean before saving the intval.
Source
File: bp-core/deprecated/buddypress/2.1.php
function bp_admin_sanitize_callback_force_buddybar( $value = false ) { return $value ? 0 : 1; }
Changelog
Version | Description |
---|---|
BuddyPress 2.1.0 | BuddyPress 2.1.0 |
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.