wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



send_auth_cookies › Les Filtres WordPress

Depuis6.2.0
Dépréciéen/a
apply_filters( 'send_auth_cookies', true, $expire, $expiration, $user_id, $scheme, $token )
Paramètres: (6)
  • (bool) $send Whether to send auth cookies to the client. Default true.
    Requis: Oui
  • (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.
    Requis: Oui
  • (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.
    Requis: Oui
  • (int) $user_id User ID. Zero when clearing cookies.
    Requis: Oui
  • (string) $scheme Authentication scheme. Values include 'auth' or 'secure_auth'. Empty string when clearing cookies.
    Requis: Oui
  • (string) $token User's session token to use for this cookie. Empty string when clearing cookies.
    Requis: Oui
Défini(e) dans:
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 ) ) {