Core Function
View Source on Trac ↗ wp_set_comment_cookies()
wp_set_comment_cookies( mixed $comment, mixed $user, mixed $cookies_consent = true ) Sets the cookies used to store an unauthenticated commentator's identity. Typically used
Parameters 2 required
| Name / Type | Description |
|---|---|
| $comment WP_Comment | Comment object. Required |
| $user WP_User | Comment author's user object. The user may not exist. Required |
| $cookies_consent bool | Optional. Comment author's consent to store cookies. Default true. |
Return Value
(void)
No return value description available.
Function Information
Since Version
3.4.0
Source File
wp-includes/comment.php
Advertisement