bp_is_activity_autoload_active( bool $default = true )
Check whether Activity Autoload is enabled.
Description
Parameters
- $default
-
(Optional) Fallback value if not found in the database. Default: true.
Default value: true
Return
(bool) True if Autoload is enabled, otherwise false.
Source
File: bp-core/bp-core-options.php
function bp_is_activity_autoload_active( $default = true ) { /** * Filters whether or not Activity Autoload is enabled. * * @since BuddyPress 2.0.0 * * @param bool $value Whether or not Activity Autoload is enabled. */ return (bool) apply_filters( 'bp_is_activity_autoload_active', (bool) bp_get_option( '_bp_enable_activity_autoload', $default ) ); }
Changelog
Version | Description |
---|---|
BuddyPress 2.0.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.