auth_cookie

过滤钩子
apply_filters( 'auth_cookie', $cookie, $user_id, $expiration, $scheme, $token )
参数
  • (string) $cookie Authentication cookie.
    Required:
  • (int) $user_id User ID.
    Required:
  • (int) $expiration The time the cookie expires as a UNIX timestamp.
    Required:
  • (string) $scheme Cookie scheme used. Accepts 'auth', 'secure_auth', or 'logged_in'.
    Required:
  • (string) $token User's session token used.
    Required:
定义位置
相关勾子
set_auth_cookiesend_auth_cookiesclear_auth_cookieauth_cookie_validsecure_auth_cookie
相关方法
wp_set_auth_cookiewp_parse_auth_cookiewp_clear_auth_cookiewp_authenticate_cookiewp_validate_auth_cookiewp_generate_auth_cookie
引入
4.0.0
弃用
-

auth_cookie是WordPress的一个函数,用于检索认证cookie的值: 这个函数检索认证cookie的值,它用于保持用户登录到网站上。

过滤认证cookie。

return apply_filters( 'auth_cookie', $cookie, $user_id, $expiration, $scheme, $token );

常见问题

FAQs
查看更多 >
闪电伯伯

(工作日 10:00 - 18:30 为您服务)

2025-11-14 10:25:38

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: