wp_authenticate_username_password


wp_authenticate_username_password ( $user, $username, $password )

Parameters:
  • (WP_User|WP_Error|null) $user WP_User or WP_Error object from a previous callback. Default null.
  • (string) $username Username for authentication.
  • (string) $password Password for authentication.
Returns:
  • (WP_User|WP_Error) WP_User on success, WP_Error on failure.
Defined at:

Description

Authenticate a user, confirming the username and password are valid.

Related Functions

wp_authenticate_email_password, wp_generate_password, wp_ajax_generate_password, wp_authenticate_spam_check, generate_random_password

Top Google Results

User discussions

wpseek mobile