MainWP Community

Disable BuddyPress and use WordPress Registration

Disable BuddyPress registration and use WordPress registration on child sites.

Snippet Type

Execute on Child Sites

Snippet

function bp_disable_bp_registration() {

    if ( is_user_logged_in() ) {
        return false;
    }
	remove_action( 'bp_init',    'bp_core_wpsignup_redirect' );
	remove_action( 'bp_screens', 'bp_core_screen_signup' );
}

add_action( 'bp_loaded', 'bp_disable_bp_registration' );
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.