Editing ‘lost password’ message
-
Question regarding “lost password” message
I’m looking to edit the default lost password confirmation message – “A password reset email has been sent to the email address on file for your account, but may take several minutes to show up in your inbox. Please wait at least 10 minutes before attempting another reset.”
The tricky part is to retrieve the value from the “enter your username or email” field in the “lost password” page and insert it as part of the message.
The filter “woocommerce_lost_password_message” doesn’t include any parameters so I’m struggling to find a proper solution.
One way I could think of is to edit the class-wc-form-handler.php file and include the user input as part of the query args. But I believe there should be a better way than to edit the core file.
Appreciate any input!
- The topic ‘Editing ‘lost password’ message’ is closed to new replies.