bp_group_is_forum_enabled( object|bool $group = false )
Determine whether forums are enabled for a group.
Description
Parameters
- $group
-
(Optional) Group object. Default: current group in loop.
Default value: false
Return
(bool)
Source
File: bp-groups/bp-groups-template.php
function bp_group_is_forum_enabled( $group = false ) { global $groups_template; if ( empty( $group ) ) { $group =& $groups_template->group; } if ( ! empty( $group->enable_forum ) ) { return true; } return false; }
Changelog
Version | Description |
---|---|
BuddyPress 1.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.