Core Function
View Source on Trac ↗ comment_exists()
comment_exists( mixed $comment_author, mixed $comment_date, mixed $timezone = 'blog' ) Determines if a comment exists based on author and date.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $comment_author string | Author of the comment. Required |
| $comment_date string | Date of the comment. Required |
| $timezone string | Timezone. Accepts 'blog' or 'gmt'. Default 'blog'. |
Return Value
((string)
| null) Comment post ID on success.
Function Information
Since Version
2.0.0
Source File
wp-admin/includes/comment.php
Advertisement