auth_cookie
apply_filters( ‘auth_cookie’, string $cookie , int $user_id , int $expiration , string $scheme , string $token )
过滤器::过滤身份验证cookie。
Filter Hook: Filters the authentication cookie.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$cookie | (string) | 身份验证cookie。 |
$user_id | (int) | 用户ID。 |
$expiration | (int) | cookie作为UNIX时间戳过期的时间。 |
$scheme | (string) | 使用Cookie方案。接受“身份验证”、“安全身份验证”或“登录”。 |
$token | (string) | 使用了用户的会话令牌。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.0.0 | wp-includes/pluggable.php:760 | 1 | 0 |
auth_cookie 为WP2原创文章,链接:https://www.wp2.cn/hook/auth_cookie/