bp_enable_site_registration( bool $default = false )

Is the Registration enabled?

Description

Parameters

$default

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

Default value: false

Return

(bool) True if the registration enable, otherwise false.

Source

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

function bp_enable_site_registration( $default = false ) {

	/**
	 * Filters whether or not the registration enable.
	 *
	 * @since BuddyPress 1.6.0
	 *
	 * @param bool $value Whether or not the registration enable.
	 */
	return (bool) apply_filters( 'bp_enable_site_registration', (bool) bp_get_option( 'bp-enable-site-registration', $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.