wpseek.com
WordPress开发者和主题制作者的搜索引擎



send_auth_cookies › WordPress过滤钩子

Since6.2.0
已弃用n/a
apply_filters( 'send_auth_cookies', true, $expire, $expiration, $user_id, $scheme, $token )
参数: (6)
  • (bool) $send Whether to send auth cookies to the client. Default true.
    Required: Yes
  • (int) $expire The time the login grace period expires as a UNIX timestamp. Default is 12 hours past the cookie's expiration time. Zero when clearing cookies.
    Required: Yes
  • (int) $expiration The time when the logged-in authentication cookie expires as a UNIX timestamp. Default is 14 days from now. Zero when clearing cookies.
    Required: Yes
  • (int) $user_id User ID. Zero when clearing cookies.
    Required: Yes
  • (string) $scheme Authentication scheme. Values include 'auth' or 'secure_auth'. Empty string when clearing cookies.
    Required: Yes
  • (string) $token User's session token to use for this cookie. Empty string when clearing cookies.
    Required: Yes
定义在:
文档:

Allows preventing auth cookies from actually being sent to the client.





源码

if ( ! apply_filters( 'send_auth_cookies', true, $expire, $expiration, $user_id, $scheme, $token ) ) {