wp_authenticate_cookie


wp_authenticate_cookie ( $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. If not empty, cancels the cookie authentication.
  • (string) password Password. If not empty, cancels the cookie authentication.
Returns:
  • (WP_User|WP_Error) WP_User on success, WP_Error on failure.
Defined at:

Description

Authenticates the user using the WordPress auth cookie.

Related Functions

wp_authenticate, wp_authenticate_spam_check, wp_set_auth_cookie, wp_clear_auth_cookie, wp_parse_auth_cookie

Top Google Results

User discussions

wpseek mobile