wpseek.com
A WordPress-centric search engine for devs and theme authors



set_auth_cookie › WordPress Action Hooks

Since4.9.0
Deprecatedn/a
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:
Codex:

Fires immediately before the authentication cookie is set.





Source

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