wpseek.com
A WordPress-centric search engine for devs and theme authors



duplicate_comment_id › WordPress Filter Hooks

Since4.4.0
Deprecatedn/a
apply_filters( 'duplicate_comment_id', $dupe_id, $commentdata )
Parameters: (2)
  • (int) $dupe_id ID of the comment identified as a duplicate.
    Required: Yes
  • (array) $commentdata Data for the comment being created.
    Required: Yes
Defined at:
Codex:

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.





Source

$dupe_id = apply_filters( 'duplicate_comment_id', $dupe_id, $commentdata );