• Resolved dxladner

    (@dxladner)


    Is there a filter for changing the login url on reset form.

    I want to change the Log In URL on the password reset form after password has been changed. The wp-login page then shows “Your password has been reset. Log in”.

    I need to change the link which is behind Log In.

    This code appears in wp-login.php line 616 and uses the wp_login_url function. I only need to change this on this form. So I DO NOT want to edit the wp_login_url. Just change the URL for this part. I want to send the new user or users who forget their password back to the home page instead of the admin login form. I have a custom login form on the home page.

    Thanks for any help in advanced!

    Darren

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    You can use the ‘login_url’ filter. If there is not a redirect_to URL parameter, add one. If one is already in the passed URL, you may change it to your site URL using PHP string functions.

    Thread Starter dxladner

    (@dxladner)

    thanks bcworkz. I will give it a try.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘filter for changing the login url on reset form’ is closed to new replies.