comment_cookie_lifetime filter-hookWP 2.8.0

Filters the lifetime of the comment cookie in seconds.

Usage

add_filter( 'comment_cookie_lifetime', 'wp_kama_comment_cookie_lifetime_filter' );

/**
 * Function for `comment_cookie_lifetime` filter-hook.
 * 
 * @param int $seconds Comment cookie lifetime.
 *
 * @return int
 */
function wp_kama_comment_cookie_lifetime_filter( $seconds ){

	// filter...
	return $seconds;
}
$seconds(int)
Comment cookie lifetime.
Default: 30000000

Changelog

Since 2.8.0 Introduced.

Where the hook is called

wp_set_comment_cookies()
comment_cookie_lifetime
wp-includes/comment.php 565
$comment_cookie_lifetime = time() + apply_filters( 'comment_cookie_lifetime', 30000000 );

Where the hook is used in WordPress

Usage not found.