725* @since 4.5.0 The value of `$username` can now be an email address.726* @since 5.4.0 The `$error` parameter was added.727*728* @param string$username Username or email address.729* @param WP_Error$errorA WP_Error object with the authentication failure details.730*/731do_action('wp_login_failed',$username,$error);732}733734return$user;735}736endif;737
History
Introduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.