wp_login_failed

Advertisement

Summery Summery

Fires after a user login has failed.

Syntax Syntax

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

Parameters Parameters

$username

(string) Username or email address.

$error

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

Source Source

File: wp-includes/pluggable.php

Advertisement

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

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.