WordPress at Your Fingertips
filter is not described

duplicate_comment_id filter-hook . WP 4.4.0

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.


add_filter( 'duplicate_comment_id', 'filter_function_name_3992', 10, 2 );
function filter_function_name_3992( $dupe_id, $commentdata ){
	// filter...

	return $dupe_id;
ID of the comment identified as a duplicate.
Data for the comment being created.


Since 4.4.0 Introduced.

Where the hook is called

wp-includes/comment.php 714
$dupe_id = apply_filters( 'duplicate_comment_id', $dupe_id, $commentdata );

Where in WP core the hook is used WordPress

Usage not found.