comment_exists


comment_exists ( $comment_author, $comment_date, $timezone = 'blog' )

Parameters:
  • (string) comment_author Author of the comment.
  • (string) comment_date Date of the comment.
  • (string) timezone Timezone. Accepts 'blog' or 'gmt'. Default 'blog'.
Returns:
  • (string|null) Comment post ID on success.
Defined at:
Change Log:
  • 4: .

Description

Determines if a comment exists based on author and date.For best performance, use `$timezone = 'gmt'`, which queries a field that is properly indexed. The default value for `$timezone` is 'blog' for legacy reasons.

Related Functions

comment_text, comment_text_rss, comment_excerpt, comment_id, comment_class

Top Google Results

User discussions

wpseek mobile