• Resolved Andrei G.

    (@27shutterclicks)


    Hi,

    I am trying to figure out how to specify a redirect URL for the reset password form.

    Currently, I have customized URL redirects set for lost password page since that form has a hidden “redirect_to” input available.

    A similar input does not exist in the Reset Password form.

    Basically, what I want, once the user has received their link in the email and have chosen a new password (via the Reset Password form), I would like to choose where they should be redirected next.

    Currently, it seems they are taken to the login page /login/?resetpass=complete. Any way to change that?

    Many thanks for your support.

    https://ww.wp.xz.cn/plugins/theme-my-login/

Viewing 1 replies (of 1 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    There’s no filter on that redirect. Perhaps you could do a second redirect?

    function tml_resetpass_redirect() {
        if ( Theme_My_Login::is_tml_page( 'login' ) && isset( $_GET['resetpass'] ) && 'complete' == $_GET['resetpass'] ) {
            $redirect_to = 'WHEREVER YOU WANT TO GO';
            wp_safe_redirect( $redirect_to );
            exit;
        }
    }
    add_action( 'tml_request', 'tml_resetpass_redirect' );
Viewing 1 replies (of 1 total)

The topic ‘Reset Password Redirect’ is closed to new replies.