WordPress at Your Fingertips
action is not described

set_comment_cookies action-hook . WP 3.4.0

Perform other actions when comment cookies are set.


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


Since 3.4.0 Introduced.
Since 4.9.6 The $cookies_consent parameter was added.

Where the hook is called

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

Where in WP core the hook is used WordPress

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