comment_cookie_lifetime filter-hook . WP 2.8.0
Filters the lifetime of the comment cookie in seconds.
Usage
add_filter( 'comment_cookie_lifetime', 'filter_function_name_8037' ); function filter_function_name_8037( $seconds ){ // filter... return $seconds; }
- $seconds(int)
- Comment cookie lifetime.
Default: 30000000
Changelog
Since 2.8.0 | Introduced. |
Where the hook is called
comment_cookie_lifetime
wp-includes/comment.php 589
$comment_cookie_lifetime = time() + apply_filters( 'comment_cookie_lifetime', 30000000 );