bp_enable_group_restrict_invites( bool $default = false )

Are group restrict invites to members who already in specific parent group?

Description

Parameters

$default

(bool) (Optional) Fallback value if not found in the database. Default: false.

Default value: false

Return

(bool) True if group restrict invites to members who already in specific parent group are enabled, otherwise false.

Source

File: bp-core/bp-core-options.php

function bp_enable_group_restrict_invites( $default = false ) {

	/**
	 * Filters whether or not groups are able to have a subgroups.
	 *
	 * @since BuddyBoss 1.0.0
	 *
	 * @param bool $value whether or not groups are able to have a parent and sub groups.
	 */
	return (bool) apply_filters( 'bp_enable_group_restrict_invites', (bool) bp_get_option( 'bp-enable-group-restrict-invites', $default ) );
}

Changelog

Changelog
Version Description
BuddyBoss 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.