bp_is_username_compatibility_mode()
Are we running username compatibility mode?
Description
Return
(bool) False when compatibility mode is disabled, true when enabled. Default: false.
Source
File: bp-core/bp-core-functions.php
function bp_is_username_compatibility_mode() {
/**
* Filters whether or not to use username compatibility mode.
*
* @since BuddyPress 1.5.0
*
* @param bool $value Whether or not username compatibility mode should be used.
*/
return apply_filters( 'bp_is_username_compatibility_mode', defined( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE' ) && BP_ENABLE_USERNAME_COMPATIBILITY_MODE );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.5.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.