apply_filters( 'auth_cookie', string $cookie, int $user_id, int $expiration, string $scheme, string $token )

Filters the authentication cookie.


Parameters

$cookie

Authentication cookie.

$user_id

User ID.

$expiration

The time the cookie expires as a UNIX timestamp.

$scheme

Cookie scheme used. Accepts 'auth', 'secure_auth', or 'logged_in'.

$token

User's session token used.


Source

File: wp-includes/pluggable.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.0.0 The $token parameter was added.
WP-2.5.0 Introduced.