WordPress at a glance
action is not described

set_comment_cookies action-hook . WP 3.4.0

Perform other actions when comment cookies are set.

Usage

add_action( 'set_comment_cookies', 'action_function_name_2750', 10, 3 );
function action_function_name_2750( $comment, $user, $cookies_consent ){
	// action...
}
$comment(WP_Comment)
Comment object.
$user(WP_User)
Comment author's user object. The user may not exist.
$cookies_consent(true/false)
Comment author's consent to store cookies.

Notes

  • Since 4.9.6 The $cookies_consent parameter was added.

Where the hook is called

In file: /wp-comments-post.php
set_comment_cookies
wp-comments-post.php 48
do_action( 'set_comment_cookies', $comment, $user, $cookies_consent );

Where the hook is used (in WP core)

wp-includes/default-filters.php 327
add_action( 'set_comment_cookies', 'wp_set_comment_cookies', 10, 3 );