apply_filters( ‘comment_cookie_lifetime’, int $seconds )

In this article

Filters the lifetime of the comment cookie in seconds.

Parameters

$secondsint
Comment cookie lifetime. Default YEAR_IN_SECONDS.

Source

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

Changelog

VersionDescription
6.6.0The default $seconds value changed from 30000000 to YEAR_IN_SECONDS.
2.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.