BP_Members_Admin::multisite_registration_on( string $option_name, string $value )
Create registration pages when multisite user registration is turned on.
Description
Parameters
- $option_name
-
(Required) Current option name; value is always 'registration'.
- $value
-
(Required)
Source
File: bp-members/classes/class-bp-members-admin.php
public function multisite_registration_on( $option_name, $value ) { if ( 'user' === $value || 'all' === $value ) { bp_core_add_page_mappings( array( 'register' => 1, 'activate' => 1 ) ); // Update site registrations options based on the BuddyBoss general registration settings. bp_update_option( 'bp-enable-site-registration', 1 ); } else { // Update site registrations options based on the BuddyBoss general registration settings. bp_update_option( 'bp-enable-site-registration', 0 ); } }
Changelog
Version | Description |
---|---|
BuddyPress 2.7.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.