Action hook 'set_comment_cookies'

in WP Core File wp-comments-post.php at line 55

Description

Fires after comment cookies are set.

Occurrences

Filename Line Number
wp-comments-post.php 55

Parameters

Type Name Description
WP_Comment $comment Comment object.
WP_User $user Comment author's user object. The user may not exist.
bool $cookies_consent Comment author's consent to store cookies.

PHP Doc

/**
 * Fires after comment cookies are set.
 *
 * @since 3.4.0
 * @since 4.9.6 The `$cookies_consent` parameter was added.
 *
 * @param WP_Comment $comment         Comment object.
 * @param WP_User    $user            Comment author's user object. The user may not exist.
 * @param bool       $cookies_consent Comment author's consent to store cookies.
 */