public
Last active

Disable BuddyPress' registration and use WP's instead. Paste this in /wp-content/plugins/bp-custom.php.

  • Download Gist
gistfile1.php
PHP
1 2 3 4 5 6 7 8
/**
* Disables BuddyPress' registration process and fallsback to WordPress' one.
*/
function my_disable_bp_registration() {
remove_action( 'bp_init', 'bp_core_wpsignup_redirect' );
remove_action( 'bp_screens', 'bp_core_screen_signup' );
}
add_action( 'bp_loaded', 'my_disable_bp_registration' );

I suggest to add

  add_filter( 'bp_get_signup_page', "firmasite_redirect_bp_signup_page");
    function firmasite_redirect_bp_signup_page($page ){
        return bp_get_root_domain() . '/wp-signup.php'; 
    }

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.