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.


Top ↑

Parameters

$dupe_id int
ID of the comment identified as a duplicate.
$commentdata array
Data for the comment being created.

Top ↑

Source

File: wp-includes/comment.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.