Skip to:
Content
Pages
Categories
Search
Top
Bottom

disable the /register/ redirect

Viewing 3 replies - 1 through 3 (of 3 total)
  • @sxalexander

    Member

    I’m also interested in turning off the registration process.

    I saw this snippet (to be put into functions.php):

    if ( bp_core_is_multisite() )
    remove_action( ‘wp’, ‘bp_core_wpsignup_redirect’ );
    else
    remove_action( ‘init’, ‘bp_core_wpsignup_redirect’ );

    from this thread:

    https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/sign-up-redirects-to-registration-which-goes-nowhere/

    But its not working yet for me.

    @sajib1223

    Participant

    Ok, to properly stop the redirect, you need to hook into WP init action.

    	add_action( 'init', 'signup_redirect_remove_init', 9 );
    function signup_redirect_remove_init(){
    	remove_action( 'bp_init', 'bp_core_wpsignup_redirect' );
    }

    Note: the priority should be lower than 10, as we need to remove action before it fires.

    @ipstas

    Participant

    That code redirects to the root domain. Is there a way to make it to stay on the same subdomain? (I have multisite)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘disable the /register/ redirect’ is closed to new replies.
Skip to toolbar