WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. DuGi_dk
    Member
    Posted 3 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!

    Regards,
    Morten / DuGi

  2. vinnyred
    Member
    Posted 3 years ago #

    Hi Morten

    You can specify the page:

    <?php
    $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