bp_is_username_compatibility_mode

Are we running username compatibility mode?.

Description

bp_is_username_compatibility_mode(); 

Usage

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

Defined (1)

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

/bp-core/bp-core-functions.php  
  1. function bp_is_username_compatibility_mode() { 
  2.  
  3. /** 
  4. * Filters whether or not to use username compatibility mode. 
  5. * @since 1.5.0 
  6. * @param bool $value Whether or not username compatibility mode should be used. 
  7. */ 
  8. return apply_filters( 'bp_is_username_compatibility_mode', defined( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE' ) && BP_ENABLE_USERNAME_COMPATIBILITY_MODE );