Skip to:
Content
Pages
Categories
Search
Top
Bottom

Redirect after registration – need new solution


  • wselwood
    Participant

    @wselwood

    Ok, so I’m setting up my new bbPress forum and have come across a problem that I just can’t fix. It’s the redirection to the wp-login screen after registration. I’ve scoured these forums and all the solutions offered take me nowhere. I’ve installed 3rd party plugins (like Pete’s) but there is just no changing the redirect. I’ve pasted code into functions.php files, almost anywhere I can, but all it’s doing is going back to the damn wp-login page!

    I am going insane here trying to make this work.

    Latest WP version, latest Lincoln Education WP theme, latest bbPress version and the site is at tec.selwood.me

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

  • Pascal Casier
    Moderator

    @casiepa

    I’ve pasted code into functions.php files, almost anywhere I can

    There is only 1 (one) functions.php where you should paste it and that’s the one in your (child) theme.

    all the solutions offered take me nowhere

    I have put all the code that I have on https://bbpress.org/forums/topic/setup-login-for-private-forum/. If you only go for the code, then make sure to deactivate any other redirection and/or security plugins (at least for the test).

    the site is at tec.selwood.me

    You are missing the ‘Email’ label under the forgot your passsword on the log-in page

    Pascal.


    wselwood
    Participant

    @wselwood

    Thanks Pascal – I’m assuming the best code is:

    function login_redirect( $redirect_to, $request, $user ){
    return home_url(‘forums’);
    }
    add_filter( ‘login_redirect’, ‘login_redirect’, 10, 3 );

    But to use registration (or register) instead of login?


    Pascal Casier
    Moderator

    @casiepa


    wselwood
    Participant

    @wselwood

    Cheers Pascal!
    Thanks for the help. I’ll let you know how it goes!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar