Description
Filters the authentication cookie.
Occurrences
Filename | Line Number |
---|---|
wp-includes/pluggable.php | 890 |
Parameters
Type | Name | Description |
---|---|---|
string | $cookie | Authentication cookie. |
int | $user_id | User ID. |
int | $expiration | The time the cookie expires as a UNIX timestamp. |
string | $scheme | Cookie scheme used. Accepts 'auth', 'secure_auth', or 'logged_in'. |
string | $token | User's session token used. |
PHP Doc
/**
* Filters the authentication cookie.
*
* @since 2.5.0
* @since 4.0.0 The `$token` parameter was added.
*
* @param string $cookie Authentication cookie.
* @param int $user_id User ID.
* @param int $expiration The time the cookie expires as a UNIX timestamp.
* @param string $scheme Cookie scheme used. Accepts 'auth', 'secure_auth', or 'logged_in'.
* @param string $token User's session token used.
*/