set_comment_cookies

Advertisement

Summery Summery

Perform other actions when comment cookies are set.

Syntax Syntax

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

Parameters Parameters

$comment

Comment object.

$user

Comment author's user object. The user may not exist.

$cookies_consent

Comment author's consent to store cookies.

Source Source

File: wp-comments-post.php

Advertisement

Changelog Changelog

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

Advertisement

Leave a Reply