auth_cookie_bad_hash WordPress Action Hook
The auth_cookie_bad_hash hook is called when an authentication cookie is malformed. This hook gives developers the opportunity to validate and/or parse the cookie themselves, rather than rely on the default WordPress behavior. This is especially useful if third-party plugins are used to handle authentication.
do_action( 'auth_cookie_bad_hash', string[] $cookie_elements ) #
Fires if a bad authentication cookie hash is encountered.
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. |