Skip to content

Documentation

Extensive Documentation for PowerPack & WooPack to help you with common questions and issues.

PowerPack

⌘K
  1. Home
  2. Docs
  3. PowerPack
  4. Modules
  5. Login Form
  6. How to change “A password reset email has been sent…” message in Login Form Module?

How to change “A password reset email has been sent…” message in Login Form Module?

You can translate the “A password reset email has been sent…” message via any translation plugin or using the below-mentioned code.

Please add the following code in your current theme’s functions.php file to change the message using the below-mentioned code:

add_filter( 'pp_login_form_js_messages_i18n', function ( $msgs ) {
// Add the message that you want to be displayed when a password reset email has been sent.
$msgs['email_sent'] = 'A password reset email has been sent to the email address for your account, but may take several minutes to show up in your inbox. Please wait at least 10 minutes before attempting another reset.';
// Add the message that you want to be displayed when password has been reset successfully.
$msgs['reset_success'] = 'Your password has been reset successfully.';
return $msgs;
}, 10 );

Here are the screenshots that will better explain how “A password reset email has been sent…” message looks after adding the above code to the site:

Before:

After:

×