auth_cookie_expired WordPress Action Hook
This hook is called when the authentication cookie has expired. It is used to clear the user's login cookie, so that they will be prompted to login again.
do_action( 'auth_cookie_expired', string[] $cookie_elements ) #
Fires once an authentication cookie has expired.
Parameters
- $cookie_elements
(string[])Authentication cookie components. None of the components should be assumed to be valid as they come directly from a client-provided cookie value.
- '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.
- 'username'
Source
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |