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



auth_cookie_expiration › WordPress过滤钩子

Since2.8.0
已弃用n/a
› apply_filters( 'auth_cookie_expiration', 14 * DAY_IN_SECONDS, $user_id, $remember )
参数: (3)
  • () length Duration of the expiration period in seconds.
    Required: Yes
  • () user_id User ID.
    Required: Yes
  • () remember Whether to remember the user login. Default false.
    Required: Yes
定义在:
文档:

Filters the duration of the authentication cookie expiration period.





源码

$expiration = time() + apply_filters( 'auth_cookie_expiration', 14 * DAY_IN_SECONDS, $user_id, $remember );