Generic Login Error Message
Replaces specific login error messages with a generic one to prevent username and email enumeration.
PHPby SnipCraft
php
<?php
add_filter( 'login_errors', 'scseed_generic_login_error' );
function scseed_generic_login_error() {
return '<strong>Error:</strong> The credentials you entered are incorrect. Please try again.';
}#hardening#login#security#users