Skip to content

Instantly share code, notes, and snippets.

@kamlesh08
Last active November 16, 2020 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kamlesh08/356f393e4b01f83a2fad6e2171ac6d17 to your computer and use it in GitHub Desktop.
Save kamlesh08/356f393e4b01f83a2fad6e2171ac6d17 to your computer and use it in GitHub Desktop.
Change "A password reset email has been sent..." message in Login Form Module
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 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment