bp_enable_group_auto_join( bool $default = false )

Is Auto Group Membership Approval enabled?

Description

Parameters

$default

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

Default value: false

Return

(bool) True if Auto Group Membership Approval is enabled, otherwise false.

Source

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

function bp_enable_group_auto_join( $default = false ) {

	/**
	 * Filters whether or not groups auto approve membership.
	 *
	 * @since BuddyBoss 1.0.0
	 *
	 * @param bool $value whether or not groups auto approve membership.
	 */
	return (bool) apply_filters( 'bp_enable_group_auto_join', (bool) bp_get_option( 'bp-enable-group-auto-join', $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.