wpseek.com
A WordPress-centric search engine for devs and theme authors



comment_cookie_lifetime › WordPress Filter Hooks

Since6.6.0
Deprecatedn/a
apply_filters( 'comment_cookie_lifetime', YEAR_IN_SECONDS )
Parameters:
  • (int) $seconds Comment cookie lifetime. Default YEAR_IN_SECONDS.
    Required: Yes
Defined at:
Codex:

Filters the lifetime of the comment cookie in seconds.





Source

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