disable WP_error: authentication_failed
You can use the pluggable function wp_authenticate to override the core. https://developer.wordpress.org/reference/functions/wp_authenticate/ Important caution: Test this code on a sandbox before deploying live! function wp_authenticate($username, $password) { $username = sanitize_user($username); $password = trim($password); $user = apply_filters( ‘authenticate’, null, $username, $password ); if ( $user == null ) { $user = new WP_Error( ‘authentication_failed’, __( ‘<strong>ERROR</strong>: … Read more