apply_filters( ‘auth_cookie’, string $cookie, int $user_id, int $expiration, string $scheme, string $token )

In this article

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

return apply_filters( 'auth_cookie', $cookie, $user_id, $expiration, $scheme, $token );

Changelog

VersionDescription
4.0.0The $token parameter was added.
2.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.