Description
Fires immediately before the authentication cookie is set.
Occurrences
Filename | Line Number |
---|---|
wp-includes/pluggable.php | 1054 |
Parameters
Type | Name | Description |
---|---|---|
string | $auth_cookie | Authentication cookie value. |
int | $expire | The time the login grace period expires as a UNIX timestamp. Default is 12 hours past the cookie's expiration time. |
int | $expiration | The time when the authentication cookie expires as a UNIX timestamp. Default is 14 days from now. |
int | $user_id | User ID. |
string | $scheme | Authentication scheme. Values include 'auth' or 'secure_auth'. |
string | $token | User's session token to use for this cookie. |
PHP Doc
/**
* Fires immediately before the authentication cookie is set.
*
* @since 2.5.0
* @since 4.9.0 The `$token` parameter was added.
*
* @param string $auth_cookie Authentication cookie value.
* @param int $expire The time the login grace period expires as a UNIX timestamp.
* Default is 12 hours past the cookie's expiration time.
* @param int $expiration The time when the authentication cookie expires as a UNIX timestamp.
* Default is 14 days from now.
* @param int $user_id User ID.
* @param string $scheme Authentication scheme. Values include 'auth' or 'secure_auth'.
* @param string $token User's session token to use for this cookie.
*/