wp_set_comment_cookies ( $comment, $user, $cookies_consent = true )

  • (WP_Comment) comment Comment object.
  • (WP_User) user Comment author's user object. The user may not exist.
  • (bool) cookies_consent Optional. Comment author's consent to store cookies. Default true.
Defined at:
Change Log:
  • 4: .


Sets the cookies used to store an unauthenticated commentator's identity. Typically used to recall previous comments by this commentator that are still held in moderation.

Related Functions

sanitize_comment_cookies, wp_set_auth_cookie, wp_set_comment_status, wp_list_comments, wp_insert_comment

Top Google Results

User discussions

wpseek mobile