wp_authenticate_email_password
wp_authenticate_email_password ( $user, $email, $password )
Parameters:- (WP_User|WP_Error|null) user WP_User or WP_Error object if a previous callback failed authentication.
- (string) email Email address for authentication.
- (string) password Password for authentication.
Returns:- (WP_User|WP_Error) WP_User on success, WP_Error on failure.
Defined at: - Introduced in WordPress: 4.5.0
- Deprecated in WordPress: —
Description
Authenticates a user using the email and password.