apply_filters( 'auth_cookie', string $cookie, int $user_id, int $expiration, string $scheme, string $token )
Filters the authentication cookie.
Parameters
- $cookie
-
(string) Authentication cookie.
- $user_id
-
(int) User ID.
- $expiration
-
(int) The time the cookie expires as a UNIX timestamp.
- $scheme
-
(string) Cookie scheme used. Accepts 'auth', 'secure_auth', or 'logged_in'.
- $token
-
(string) User's session token used.
Source
Changelog
Version | Description |
---|---|
4.0.0 | The $token parameter was added. |
2.5.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/auth_cookie