Buddypress: Disable Register page redirection

After installing Buddypress, you may notice that default register url is redirected to “Register Page” of Buddypress.
http://www.example.com/wp-login.php?action=register
to
http://www.example.com/register

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' );
else
	remove_action( 'bp_init', 'bp_core_wpsignup_redirect' );

Thank you.

4 Replies to “Buddypress: Disable Register page redirection”

Leave a Reply

Your email address will not be published. Required fields are marked *