Last active
November 16, 2020 09:11
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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