wp_authenticate


wp_authenticate ( $username, $password )

Parameters:
  • (string) username User's username or email address.
  • (string) password User's password.
Returns:
  • (WP_User|WP_Error) WP_User object if the credentials are valid, otherwise WP_Error.
Defined at:
Change Log:
  • 4: .

Description

Authenticates a user, confirming the login credentials are valid.

Related Functions

wp_authenticate_cookie, wp_authenticate_spam_check, wp_authenticate_email_password, wp_checkdate, wp_attachment_is

Top Google Results

User discussions

wpseek mobile