Created
December 11, 2015 16:55
-
-
Save celticwebdesign/2613deeba0452b57b441 to your computer and use it in GitHub Desktop.
WordPress change the login error messages (http://www.xxx.net/wp/wp-login.php?checkemail=confirm)
This file contains hidden or 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( 'wp_login_errors', 'wpse_161709', 10, 2 ); | |
function wpse_161709( $errors, $redirect_to ) | |
{ | |
if( isset( $errors->errors['confirm'] ) ) { | |
// echo "<pre>"; | |
// print_r($errors->errors); | |
// echo "</pre>"; | |
// echo $errors->errors['confirm'][0]; | |
$errors->errors['confirm'][0] = "Please wait for and email, you don't need to do anything right now."; | |
} | |
return $errors; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment