On this page
apply_filters( 'duplicate_comment_id', int $dupe_id, array $commentdata )
Filters the ID, if any, of the duplicate comment found when creating a new comment.
Description
Return an empty value from this filter to allow what WP considers a duplicate comment.
Parameters
$dupe_idint-
ID of the comment identified as a duplicate.
$commentdataarray-
Data for the comment being created.
Source
File: wp-includes/comment.php. View all references
$dupe_id = apply_filters( 'duplicate_comment_id', $dupe_id, $commentdata );
Related
Used By
| Used By | Description |
|---|---|
| wp_allow_comment() wp-includes/comment.php | Validates whether this comment is allowed to be made. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/duplicate_comment_id