comment_cookie_lifetime, YEAR_IN_SECONDS
comment_cookie_lifetime, YEAR_IN_SECONDS
Appears in: jetpack.16.0.1
Hook Type: filter
Displaying hooks found in version: jetpack.16.0.1apply_filters('comment_cookie_lifetime, YEAR_IN_SECONDS') is found 2 times:
- /modules/comments/base.php line 323
// phpcs:disable WordPress.Security.NonceVerification -- Nonce verification should happen in Jetpack_Comments::pre_comment_on_post(). $is_consenting_to_cookies = ( isset( $_POST['wp-comment-cookies-consent'] ) ); $cookie_options = array( 'expires' => time() + apply_filters( 'comment_cookie_lifetime', YEAR_IN_SECONDS ), 'path' => COOKIEPATH, 'domain' => COOKIE_DOMAIN, 'secure' => is_ssl(), 'httponly' => true, );
- /modules/subscriptions.php line 889
public function set_cookies( $subscribe_to_post = false, $post_id = null, $subscribe_to_blog = false ) { $post_id = (int) $post_id; /** This filter is already documented in core/wp-includes/comment-functions.php */ $cookie_lifetime = apply_filters( 'comment_cookie_lifetime', YEAR_IN_SECONDS ); /** * Filter the Jetpack Comment cookie path. * * @module subscriptions *