This function has been deprecated. BuddyPress 3.0.0 No longer used in core, but supported for third-party code instead.
bp_is_group_forums_active( bool $default = false )
Check whether bbPress plugin-powered Group Forums are enabled.
Description
Parameters
- $default
-
(Optional) Fallback value if not found in the database. Default: false.
Default value: false
Return
(bool) True if group forums are active, otherwise false.
Source
File: bp-core/deprecated/buddypress/3.0.php
function bp_is_group_forums_active( $default = false ) { _deprecated_function( __FUNCTION__, '3.0', 'groups_get_group( $id )->enable_forum' ); $is_active = function_exists( 'bbp_is_group_forums_active' ) ? bbp_is_group_forums_active( $default ) : $default; /** * Filters whether or not bbPress plugin-powered Group Forums are enabled. * * @since BuddyPress 1.6.0 * @deprecated BuddyPress 3.0.0 No longer used in core, but supported for third-party code. * * @param bool $value Whether or not bbPress plugin-powered Group Forums are enabled. */ return (bool) apply_filters( 'bp_is_group_forums_active', $is_active ); }
Changelog
Version | Description |
---|---|
BuddyPress 3.0.0 $default argument's default value changed from true to false. | BuddyPress 3.0.0 $default argument's default value changed from true to false. |
BuddyPress 1.6.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.