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

Fires once an authentication cookie has been validated.


Parameters

$cookie_elements

Authentication cookie components.<br>

  • 'username'
    (string) User's username.<br>
  • 'expiration'
    (string) The time the cookie expires as a UNIX timestamp.<br>
  • 'token'
    (string) User's session token used.<br>
  • 'hmac'
    (string) The security hash for the cookie.<br>
  • 'scheme'
    (string) The cookie scheme to use.<br>

$user

User object.


Source

File: wp-includes/pluggable.php

View on GitHub



Changelog

Changelog
Version Description
2.7.0 Introduced.