do_action( ‘auth_cookie_valid’, string[] $cookie_elements, WP_User $user )

In this article

Fires once an authentication cookie has been validated.

Parameters

$cookie_elementsstring[]
Authentication cookie components.
  • username string
    User’s username.
  • expiration string
    The time the cookie expires as a UNIX timestamp.
  • token string
    User’s session token used.
  • hmac string
    The security hash for the cookie.
  • scheme string
    The cookie scheme to use.
$userWP_User
User object.

Source

do_action( 'auth_cookie_valid', $cookie_elements, $user );

Changelog

VersionDescription
2.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.