On this page
apply_filters( 'auth_cookie', string $cookie, int $user_id, int $expiration, string $scheme, string $token )
Filters the authentication cookie.
Parameters
$cookiestring-
Authentication cookie.
$user_idint-
User ID.
$expirationint-
The time the cookie expires as a UNIX timestamp.
$schemestring-
Cookie scheme used. Accepts
'auth','secure_auth', or'logged_in'. $tokenstring-
User's session token used.
Source
File: wp-includes/pluggable.php. View all references
return apply_filters( 'auth_cookie', $cookie, $user_id, $expiration, $scheme, $token );
Related
Used By
| Used By | Description |
|---|---|
| wp_generate_auth_cookie() wp-includes/pluggable.php | Generates authentication cookie contents. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/auth_cookie