wp_login_failed WordPress Action Hook
The wp_login_failed hook is called when a user has failed to login. It allows for custom handling of this event, such as logging the failure, sending an email to the user, or displaying a message to the user.
do_action( 'wp_login_failed', string $username , WP_Error $error ) #
Fires after a user login has failed.
Parameters
Source
Changelog
Version | Description |
---|---|
5.4.0 | The $error parameter was added. |
4.5.0 | The value of $username can now be an email address. |
2.5.0 | Introduced. |