send_auth_cookies

过滤钩子
apply_filters( 'send_auth_cookies', true )
参数
  • (bool) $send Whether to send auth cookies to the client.
    Required:
定义位置
相关勾子
set_auth_cookiesecure_auth_cookieauth_cookieclear_auth_cookieauth_cookie_bad_hash
相关方法
wp_set_auth_cookiewp_parse_auth_cookiewp_generate_auth_cookiewp_clear_auth_cookiewp_validate_auth_cookiewp_setcookie
引入
4.7.4
弃用
-

send_auth_cookies: 这是WordPress中的一个动作钩子,当认证cookies被发送到浏览器时被触发。send_auth_cookies动作钩子可以用来修改正在发送的cookie,或者增加要发送的额外cookie。这对于在cookie中添加自定义认证数据或修改认证过程是很有用的。

允许防止认证cookie实际被发送到客户端。

if ( ! apply_filters( 'send_auth_cookies', true ) ) {

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-14 16:36:35

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

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

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