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
2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 | 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.