W3cubDocs

/WordPress

apply_filters( ‘send_auth_cookies’, bool $send, int $expire, int $expiration, int $user_id, string $scheme, string $token )

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

Parameters

$sendbool
Whether to send auth cookies to the client. Default true.
$expireint
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.
$expirationint
The time when the logged-in authentication cookie expires as a UNIX timestamp.
Default is 14 days from now. Zero when clearing cookies.
$user_idint
User ID. Zero when clearing cookies.
$schemestring
Authentication scheme. Values include 'auth' or 'secure_auth'.
Empty string when clearing cookies.
$tokenstring
User’s session token to use for this cookie. Empty string when clearing cookies.

Source

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

Changelog

Version Description
6.2.0 The $expire, $expiration, $user_id, $scheme, and $token parameters were added.
4.7.4 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/send_auth_cookies