do_action( ‘set_comment_cookies’, WP_Comment $comment, WP_User $user, bool $cookies_consent )

In this article

Fires after comment cookies are set.

Parameters

$commentWP_Comment
Comment object.
$userWP_User
Comment author’s user object. The user may not exist.
$cookies_consentbool
Comment author’s consent to store cookies.

Source

do_action( 'set_comment_cookies', $comment, $user, $cookies_consent );

Changelog

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

User Contributed Notes

You must log in before being able to contribute a note or feedback.