wphooks.info - wp_login_failed

wp_login_failed

The hook occurs in the following file:

wp-includes/pluggable.php:
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
	if (is_wp_error($user) && !in_array($user->get_error_code(), $ignore_codes) ) {
		/**
		 * Fires after a user login has failed.
		 *
		 * @since 2.5.0
		 * @since 4.5.0 The value of `$username` can now be an email address.
		 *
		 * @param string $username Username or email address.
		 */
		do_action( 'wp_login_failed', $username );
	}

	return $user;
}
endif;

if ( !function_exists('wp_logout') ) :
/**
 * Log the current user out.