HEX
Server: Apache/2.4.65 (Unix) OpenSSL/1.1.1f
System: Linux dsserver6 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64
User: studiomoguls (1002)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/studiomoguls/webapps/Studio-mogulsc-clone/wp-content/plugins/wp-rocket/inc/front/cookie.php
<?php

defined( 'ABSPATH' ) || exit;

/**
 * By default, the lifetime of the cookie comment is one year.
 * Life is reduced to 3 minutes so that the visitor can enjoy the cached site.
 *
 * @since 1.0
 */
function rocket_comment_cookie_lifetime() {
	/**
	 * Filter the lifetime of the cookie comment
	 *
	 * @since 2.2
	 *
	 * @param int The lifetime of the cookie in seconds
	 */
	$cookie_lifetime = apply_filters( 'rocket_comment_cookie_lifetime', 3 * MINUTE_IN_SECONDS );

	return $cookie_lifetime;
}
add_filter( 'comment_cookie_lifetime', 'rocket_comment_cookie_lifetime' );