1. 首页
  2. WordPress钩子手册

comment_cookie_lifetime

apply_filters( ‘comment_cookie_lifetime’, int $seconds )

过滤器::以秒为单位过滤注释cookie的生存期。
Filter Hook: Filters the lifetime of the comment cookie in seconds.

目录锚点:#参数#源码


参数(Parameters)

参数 类型 说明
$seconds (int) 注释cookie生存期。默认30000000。

源码(Source)


更新版本 源码位置 使用 被使用
2.8.0 wp-includes/comment.php:574 1 0

comment_cookie_lifetime 为WP2原创文章,链接:https://www.wp2.cn/hook/comment_cookie_lifetime/