wp_set_comment_cookies


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

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

Description

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_list_comments, wp_set_comment_status, wp_insert_comment

Top Google Results

User discussions

wpseek mobile