bp_disable_group_type_creation( bool $default = false )

Are group types creation disabled?

Description

Parameters

$default

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

Default value: false

Return

(bool) True if group types are disabled, otherwise false.

Source

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

function bp_disable_group_type_creation( $default = false ) {

	/**
	 * Filters whether or not members are able to create group types.
	 *
	 * @since BuddyPress 2.4.0
	 *
	 * @param bool $value Whether or not members are able to create groups types.
	 */
	return (bool) apply_filters( 'bp_disable_group_type_creation', (bool) bp_get_option( 'bp-disable-group-type-creation', $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.