bp_admin_setting_callback_force_buddybar

If user has upgraded to 1.6 and chose to retain their BuddyBar, offer then a switch to change over to the WP Toolbar.

Description

bp_admin_setting_callback_force_buddybar(); 

Usage

  1. if ( !function_exists( 'bp_admin_setting_callback_force_buddybar' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/deprecated/2.1.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_admin_setting_callback_force_buddybar(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-core/deprecated/2.1.php  
  1. function bp_admin_setting_callback_force_buddybar() { 
  2. ?> 
  3.  
  4. <input id="_bp_force_buddybar" name="_bp_force_buddybar" type="checkbox" value="1" <?php checked( ! bp_force_buddybar( true ) ); ?> /> 
  5. <label for="_bp_force_buddybar"><?php _e( 'Switch to WordPress Toolbar', buddypress ); ?></label> 
  6.  
  7. <?php