Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Disabling register redirect

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

  • 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’ );
    `


    Daniele
    Participant

    @dabesa

    Ryan,
    Where did you put this code?

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

    Thanks!

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


    Daniele
    Participant

    @dabesa

    OK Hugo, sorry about that!

    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)
  • The topic ‘[Resolved] Disabling register redirect’ is closed to new replies.
Skip to toolbar