Filter hook 'duplicate_comment_id'
in WP Core File wp-includes/comment.php at line 689
Description
Filters the ID, if any, of the duplicate comment found when creating a new comment. Return an empty value from this filter to allow what WP considers a duplicate comment.
Occurrences
Filename |
Line Number |
wp-includes/comment.php |
689 |
Parameters
Type |
Name |
Description |
int |
$dupe_id |
ID of the comment identified as a duplicate. |
array |
$commentdata |
Data for the comment being created. |
PHP Doc
/**
* Filters the ID, if any, of the duplicate comment found when creating a new comment.
*
* Return an empty value from this filter to allow what WP considers a duplicate comment.
*
* @since 4.4.0
*
* @param int $dupe_id ID of the comment identified as a duplicate.
* @param array $commentdata Data for the comment being created.
*/