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
348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 | 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.