Created
November 6, 2022 15:49
-
-
Save AndreFCAmorim/b4bbe7ff54e845741e5d4e92108d1116 to your computer and use it in GitHub Desktop.
Hide Login Errors on WordPress
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
<?php | |
add_filter( | |
'login_errors', | |
function ( $error ) { | |
// Edit the line below to customize the message. | |
return 'Something is wrong!'; | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment