Change the login url from the lostpassword e-mail? (2 posts)

  1. DuGi_dk
    Posted 5 years ago #

    Hey everyone,

    I'm having a little bit of a problem. When a user requests a new password, the e-mail contains a link to http://yoursite.com/wp-login.php.

    The problem is, that since there is no "?redirect=" on the url, the user is sent to the WP Admin area. I really wanna redirect the user to another page then the admin area.

    Is this even possible? I have searched through the Filter/Action references, and tried to use the "lostpassword_url" filter, but without any luck.

    Anyone have any ideas, solutions or suggestions?

    In advanced, thank you!

    Morten / DuGi

  2. vinnyred
    Posted 5 years ago #

    Hi Morten

    You can specify the page:

    $redirect = get_option('home');
    echo wp_lostpassword_url( $redirect ); ?>

    would take someone to home page after the lost password box is complete.

Topic Closed

This topic has been closed to new replies.

About this Topic