auth_cookie_malformed WordPress Action Hook
The auth_cookie_malformed hook is triggered when an authentication cookie is malformed. This hook can be used to take action when an authentication cookie is malformed. For example, you might want to log an error or redirect the user to a login page.
do_action( 'auth_cookie_malformed', string $cookie , string $scheme ) #
Fires if an authentication cookie is malformed.
Parameters
- $cookie
(string)Malformed auth cookie.
- $scheme
(string)Authentication scheme. Values include 'auth', 'secure_auth', or 'logged_in'.
Source
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |