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

Perform other actions when comment cookies are set.

Parameters Parameters


(WP_Comment) Comment object.


(WP_User) Comment author's user object. The user may not exist.


(bool) Comment author's consent to store cookies.

Top ↑

Source Source

File: wp-comments-post.php

View on Trac

Top ↑

Changelog Changelog

Version Description
4.9.6 The $cookies_consent parameter was added.
3.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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