WordPress at a glance
filter is not described

auth_cookie filter-hook . WP 2.5.0

Filters the authentication cookie.

Usage

add_filter( 'auth_cookie', 'filter_function_name_6809', 10, 5 );
function filter_function_name_6809( $cookie, $user_id, $expiration, $scheme, $token ){
	// filter...

	return $cookie;
}
$cookie(string)
Authentication cookie.
$user_id(int)
User ID.
$expiration(int)
The time the cookie expires as a UNIX timestamp.
$scheme(string)
Cookie scheme used. Accepts 'auth', 'secure_auth', or 'logged_in'.
$token(string)
User's session token used.

Notes

  • Since 4.0.0 The $token parameter was added.

Where the hook is called

wp_generate_auth_cookie()
wp-includes/pluggable.php 738
return apply_filters( 'auth_cookie', $cookie, $user_id, $expiration, $scheme, $token );

Where the hook is used (in WP core)

Does not used.