wphooks.info - wp_login_failed

wp_login_failed

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/pluggable.php:
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
		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.