comment_cookie_lifetime

过滤钩子


apply_filters( 'comment_cookie_lifetime', 30000000 )
参数
  • (int)
    $seconds
    Comment cookie lifetime. Default 30000000.
    Required:
定义位置
  • wp-includes/comment.php
    , line 565
引入
2.8.0
弃用

Filters the lifetime of the comment cookie in seconds.

$comment_cookie_lifetime = time() + apply_filters( 'comment_cookie_lifetime', 30000000 );