On this page
do_action( 'auth_cookie_valid', string[] $cookie_elements, WP_User $user )
Fires once an authentication cookie has been validated.
Parameters
$cookie_elementsstring[]-
Authentication cookie components.
usernamestringUser's username.expirationstringThe time the cookie expires as a UNIX timestamp.tokenstringUser's session token used.hmacstringThe security hash for the cookie.schemestringThe cookie scheme to use.
$userWP_User-
User object.
Source
File: wp-includes/pluggable.php. View all references
do_action( 'auth_cookie_valid', $cookie_elements, $user );
Related
Used By
| Used By | Description |
|---|---|
| wp_validate_auth_cookie() wp-includes/pluggable.php | Validates authentication cookie. |
Changelog
| Version | Description |
|---|---|
| 2.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/auth_cookie_valid