• freddybabalu

    (@freddybabalu)


    I would like to modify the scheme of the forgot password email, because I have deactivated the wp-login.php and therefore the link that is sent is not working. How can I modify this?

Viewing 1 replies (of 1 total)
  • It’s not currently possible. Here’s the code for “lost password” (“public/class-wp-rest-user-public.php“, line 211):

    $email_successful = wp_mail($email, 'Reset password', 'Click here in order to reset your password:<br><br>' . $rp_link);

    As you can see, the email contents are hard-coded and can’t be changed through a filter. I experienced the same situation and ended up creating my own endpoint for “lost password”.

    Hopefully, this will be improved in the future.

Viewing 1 replies (of 1 total)
  • The topic ‘Modify the forgot password email scheme’ is closed to new replies.