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



send_auth_cookies › WordPress Filter Hooks

Since6.2.0
Deprecatedn/a
apply_filters( 'send_auth_cookies', true, $expire, $expiration, $user_id, $scheme, $token )
Parameters: (6)
  • (bool) $send Whether to send auth cookies to the client. Default true.
    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. Zero when clearing cookies.
    Required: Yes
  • (int) $expiration The time when the logged-in authentication cookie expires as a UNIX timestamp. Default is 14 days from now. Zero when clearing cookies.
    Required: Yes
  • (int) $user_id User ID. Zero when clearing cookies.
    Required: Yes
  • (string) $scheme Authentication scheme. Values include 'auth' or 'secure_auth'. Empty string when clearing cookies.
    Required: Yes
  • (string) $token User's session token to use for this cookie. Empty string when clearing cookies.
    Required: Yes
Defined at:
Codex:

Allows preventing auth cookies from actually being sent to the client.





Source

if ( ! apply_filters( 'send_auth_cookies', true, $expire, $expiration, $user_id, $scheme, $token ) ) {