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

	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.