Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/pluggable.php | do_action | 1048 | /** * 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. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
string | $auth_cookie | Authentication cookie value. |
int | $expire | The time the login grace period expires as a UNIX timestamp. |
int | $expiration | The time when the authentication cookie expires as a UNIX timestamp. |
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. |