WordPress at a glance
filter is not described

auth_cookie filter-hook . WP 2.5.0

Filters the authentication cookie.


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

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


  • Since 4.0.0 The $token parameter was added.

Where the hook is called

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.