bbp_is_forum_group_forum( int $forum_id )
Return true if a forum is a group forum
Description
Parameters
- $forum_id
-
(Required)
Return
(bool) True if it is a group forum, false if not
Source
File: bp-forums/functions.php
function bbp_is_forum_group_forum( $forum_id = 0 ) { // Validate $forum_id = bbp_get_forum_id( $forum_id ); // Check for group ID's $group_ids = bbp_get_forum_group_ids( $forum_id ); // Check if the forum has groups $retval = (bool) !empty( $group_ids ); return (bool) apply_filters( 'bbp_is_forum_group_forum', $retval, $forum_id, $group_ids ); }
Changelog
Version | Description |
---|---|
bbPress (r4571) | 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.