bp_restrict_group_creation( bool $default = true )
Is group creation turned off?
Description
Parameters
- $default
-
(Optional) Fallback value if not found in the database. Default: true.
Default value: true
Return
(bool) True if group creation is restricted, otherwise false.
Source
File: bp-core/bp-core-options.php
function bp_restrict_group_creation( $default = true ) { /** * Filters whether or not group creation is turned off. * * @since BuddyPress 1.6.0 * * @param bool $value Whether or not group creation is turned off. */ return (bool) apply_filters( 'bp_restrict_group_creation', (bool) bp_get_option( 'bp_restrict_group_creation', $default ) ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.6.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.