Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forgot password (not reset password!) redirect url function

  • @biznisoka

    Participant

    I can’t find the solution for custom redirect when forgot password form is sent (the form with only one field, your username or email, and “get new password” button, which triggers the email with the reset password link in it, which then opens the reset password form).

    The reset password form which has two fields, “new password” and “repeat new password” (and buton save password). I solved the reset password redirect with code snippet

    function wpse_lost_password_redirect() {
        wp_redirect( 'myurl' ); 
        exit;
    }
    add_action('password_reset', 'wpse_lost_password_redirect');

    But it doesn’t work for the lost password form. Is there also a redirect function for forgot password, which I could use?

    Have WP 5.7.2., bbpress 2.6.6., also use themeMyLogin plugin.

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • @biznisoka

    Participant

    Anyone?
    If I improvise, how can I then remove “forgot your password” link in the registration form?

    @biznisoka

    Participant

    by how I mean from which file

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