bp_is_username_compatibility_mode()
Are we running username compatibility mode?
Description Description
Return Return
(bool) False when compatibility mode is disabled, true when enabled. Default: false.
Source Source
File: bp-core/bp-core-functions.php
function bp_is_username_compatibility_mode() { /** * Filters whether or not to use username compatibility mode. * * @since 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 Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |