Warning: This function has been deprecated. 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 Description
Parameters Parameters
- $default
-
(Optional) Fallback value if not found in the database. Default: false.
Default value: false
Return Return
(bool) True if group forums are active, otherwise false.
Source Source
File: bp-core/deprecated/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 1.6.0 * @deprecated 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 Changelog
Version | Description |
---|---|
3.0.0 | No longer used in core, but supported for third-party code. |
1.6.0 | Introduced. |