comment_cookie_lifetime WordPress Filter Hook
The comment_cookie_lifetime hook allows you to change the amount of time that a user's comment cookie will be valid for. By default, the comment cookie is set to expire 2 days after the user leaves a comment.
apply_filters( 'comment_cookie_lifetime', int $seconds ) #
Filters the lifetime of the comment cookie in seconds.
Parameters
- $seconds
(int)Comment cookie lifetime. Default 30000000.
Source
File: wp-includes/comment.php
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |