设置注释cookie时执行其他操作。
原型
do_action( 'set_comment_cookies', WP_Comment $comment, WP_User $user, boolean $cookies_consent )
参数
$comment
(WP_Comment)
评论对象。
$user
(WP_User)
评论作者的用户对象。用户可能不存在。
$cookies_consent
(boolean)
评论作者同意存储cookie。
源文件
路径:wp-comments-post.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/set_comment_cookies/