Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Disabling register redirect

  • Avatar of ryan_m27
    ryan_m27
    Participant

    @ryan_m27

    I really love my s2member setup and really don’t want to use BP registration. I’ve got things set up pretty well, however I’d rather disable the redirect from the standard WP registration url than hack it everywhere it appears. I’ve tried:

    `if ( bp_core_is_multisite() )
    remove_action( ‘wp’, ‘bp_core_wpsignup_redirect’ );
    else
    remove_action( ‘init’, ‘bp_core_wpsignup_redirect’ );
    `
    and
    `
    remove_action( ‘wp’, ‘bp_core_screen_signup’, 3 );
    `
    with no luck.

    Any ideas?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Avatar of ryan_m27
    ryan_m27
    Participant

    @ryan_m27

    Just looked again at the arguments and figured it out; it should be:
    `
    remove_action( ‘bp_init’, ‘bp_core_wpsignup_redirect’ );
    `

    Avatar of dabesa
    dabesa
    Participant

    @dabesa

    Ryan,
    Where did you put this code?

    I tried adding that to bp-custom.php but didn’t work.

    Thanks!

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    @dabesa Please open your own thread setting out your requirement, do not open multiple, very old, seemingly related post, it’s not good form.

    Avatar of dabesa
    dabesa
    Participant

    @dabesa

    OK Hugo, sorry about that!

    Avatar 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.

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.