A WordPress-centric search engine for devs and theme authors

set_auth_cookie › WordPress Action Hooks

do_action( 'set_auth_cookie', $auth_cookie, $expire, $expiration, $user_id, $scheme, $token )
Parameters: (6)
  • (string) $auth_cookie Authentication cookie value.
    Required: Yes
  • (int) $expire The time the login grace period expires as a UNIX timestamp. Default is 12 hours past the cookie's expiration time.
    Required: Yes
  • (int) $expiration The time when the authentication cookie expires as a UNIX timestamp. Default is 14 days from now.
    Required: Yes
  • (int) $user_id User ID.
    Required: Yes
  • (string) $scheme Authentication scheme. Values include 'auth' or 'secure_auth'.
    Required: Yes
  • (string) $token User's session token to use for this cookie.
    Required: Yes
Defined at:

Fires immediately before the authentication cookie is set.

Related Functions:


do_action( 'set_auth_cookie', $auth_cookie, $expire, $expiration, $user_id, $scheme, $token );