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_id

ID of the comment identified as a duplicate.

$commentdata

Data for the comment being created.


Source

File: wp-includes/comment.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.4.0 Introduced.