bp_groups_auto_join()

Determine whether groups auto-join is enabled.

Description

"Auto-join" is the toggle that determines whether users are joined to a public group automatically when creating content in that group.

Return

(bool)

Source

File: bp-groups/bp-groups-template.php

function bp_groups_auto_join() {

	/**
	 * Filters whether groups auto-join is enabled.
	 *
	 * @since BuddyPress 1.2.6
	 *
	 * @param bool $value Enabled status.
	 */
	return apply_filters( 'bp_groups_auto_join', (bool) buddypress()->groups->auto_join );
}

Changelog

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