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

Fires after comment cookies are set.


Parameters

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

Top ↑

Source

File: wp-comments-post.php. View all references

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

Top ↑

Changelog

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

Top ↑

User Contributed Notes

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