wp_login_failed

动作钩子


do_action( 'wp_login_failed', $username, $error )
参数
  • (string)
    $username
    Username or email address.
    Required:
  • (WP_Error)
    $error
    A WP_Error object with the authentication failure details.
    Required:
定义位置
  • wp-includes/pluggable.php
    , line 637
引入
5.4.0
弃用

Fires after a user login has failed.

do_action( 'wp_login_failed', $username, $error );