BP_Members_Admin::single_site_registration_on( string $old_value, string $value )
Create registration pages when single site registration is turned on.
Description
Parameters
- $old_value
-
(string) (Required)
- $value
-
(string) (Required)
Source
File: bp-members/classes/class-bp-members-admin.php
public function single_site_registration_on( $old_value, $value ) { // Single site. if ( ! is_multisite() && ! empty( $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.