Buddypress: Disable Register page redirection

After installing Buddypress, you may notice that default register url is redirected to “Register Page” of Buddypress.

What if you want to keep default register url of wordpress and “Register page” of buddypress still works. A simply way to do that, we can disable Buddypress redirection function by putting the code below into your theme function.php file.

/** Disable BuddyPress Register page redirection http://www.adminblog.com **/ 
if ( bp_core_is_multisite() ) 
    remove_action( 'wp', 'bp_core_wpsignup_redirect' ); 
    remove_action( 'bp_init', 'bp_core_wpsignup_redirect' );

Thank you.

Written on 20 July 2012

Share your thoughts