wordpress / latest / hooks / comment_cookie_lifetime.html

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. View all references

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

Used By

Used By Description

Changelog

Version Description
2.8.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comment_cookie_lifetime