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

Filters the authentication cookie.

Description Description

Parameters Parameters


(string) Authentication cookie.


(int) User ID.


(int) The time the cookie expires as a UNIX timestamp.


(string) Cookie scheme used. Accepts 'auth', 'secure_auth', or 'logged_in'.


(string) User's session token used.

Top ↑

Source Source

File: wp-includes/pluggable.php

View on Trac

Top ↑

Changelog Changelog

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

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.