apply_filters( 'auth_cookie', string $cookie, int $user_id, int $expiration, string $scheme, string $token )
- Since
- 2.5.0, 4.0.0
Filters the authentication cookie.
Parameters
$cookiestring- Authentication cookie.
$user_idint- User ID.
$expirationint- The time the cookie expires as a UNIX timestamp.
$schemestring- Cookie scheme used. Accepts 'auth', 'secure_auth', or 'logged_in'.
$tokenstring- User's session token used.
Fired at · 1
wp-includes/pluggable.php:905wp_generate_auth_cookie()
Source
<?php * @param string $cookie Authentication cookie. * @param int $user_id User ID. * @param int $expiration The time the cookie expires as a UNIX timestamp. * @param string $scheme Cookie scheme used. Accepts 'auth', 'secure_auth', or 'logged_in'. * @param string $token User's session token used. */ return apply_filters( 'auth_cookie', $cookie, $user_id, $expiration, $scheme, $token ); }endif; if ( ! function_exists( 'wp_parse_auth_cookie' ) ) : /** * Parses a cookie into its components.History
Introduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
4.0.0
The
$token parameter was added.from the docblock2.5.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 6.8.8 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.