Generic Login Error Message
Shows the same error for a wrong username and a wrong password, so the login form does not reveal which usernames exist.
Opens WPIDE on
Code
add_filter( 'login_errors', function () {
return '<strong>Error:</strong> The username, email address or password you entered is incorrect.';
} );
Notes
This replaces every login error, including messages about blocked cookies.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.