Skip to:
Content
Pages
Categories
Search
Top
Bottom

disable the /register/ redirect

Viewing 3 replies - 1 through 3 (of 3 total)
  • Profile photo of sxalexander
    sxalexander
    Member

    @sxalexander

    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.

    Profile photo of Shazzad Hossain Khan
    Shazzad Hossain Khan
    Participant

    @sajib1223

    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.

    Profile photo of ipstas
    ipstas
    Participant

    @ipstas

    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