bp_enable_group_hierarchies( bool $default = false )

Are group hierarchies enabled?

Description

Parameters

$default

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

Default value: false

Return

(bool) True if group hierarchies are enabled, otherwise false.

Source

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

function bp_enable_group_hierarchies( $default = false ) {

	/**
	 * Filters whether or not groups are able to have a parent and sub groups.
	 *
	 * @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_hierarchies', (bool) bp_get_option( 'bp-enable-group-hierarchies', $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.