do_action( 'wp_login_failed', string $username, WP_Error $error )

Fires after a user login has failed.

Parameters Parameters


(string) Username or email address.


(WP_Error) A WP_Error object with the authentication failure details.

Top ↑

Source Source

File: wp-includes/pluggable.php

View on Trac

Top ↑

Changelog 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.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.