BP_REST_Groups_Endpoint::bp_rest_group_is_forum_enabled( BP_Groups_Group $group )

Check the forum is enable or not with platform.

Description

Parameters

$group

(Required) Group object.

Return

(bool)

Source

File: bp-groups/classes/class-bp-rest-groups-endpoint.php

1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
public function bp_rest_group_is_forum_enabled( $group ) {
 
    if ( function_exists( 'bbp_is_group_forums_active' ) ) {
        return bbp_is_group_forums_active() && bp_group_is_forum_enabled( $group );
    } else {
        return bp_group_is_forum_enabled( $group );
    }
 
    return false;
}

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.