wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



send_auth_cookies › WordPress Filter Hooks

Seit6.2.0
Veraltetn/v
apply_filters( 'send_auth_cookies', true, $expire, $expiration, $user_id, $scheme, $token )
Parameter: (6)
  • (bool) $send Whether to send auth cookies to the client. Default true.
    Erforderlich: Ja
  • (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.
    Erforderlich: Ja
  • (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.
    Erforderlich: Ja
  • (int) $user_id User ID. Zero when clearing cookies.
    Erforderlich: Ja
  • (string) $scheme Authentication scheme. Values include 'auth' or 'secure_auth'. Empty string when clearing cookies.
    Erforderlich: Ja
  • (string) $token User's session token to use for this cookie. Empty string when clearing cookies.
    Erforderlich: Ja
Definiert in:
Codex:

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





Quellcode

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