Allows preventing auth cookies from actually being sent to the client.
Parameters
$send
bool- Whether to send auth cookies to the client. Default true.
$expire
int- 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. $expiration
int- The time when the logged-in authentication cookie expires as a UNIX timestamp.
Default is 14 days from now. Zero when clearing cookies. $user_id
int- User ID. Zero when clearing cookies.
$scheme
string- Authentication scheme. Values include
'auth'
or'secure_auth'
.
Empty string when clearing cookies. $token
string- 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 ) ) {
User Contributed Notes
You must log in before being able to contribute a note or feedback.