Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



duplicate_comment_id ›

Seit4.4.0
Veraltetn/v
apply_filters( 'duplicate_comment_id', $dupe_id, $commentdata )
Parameter: (2)
  • (int) $dupe_id ID of the comment identified as a duplicate.
    Erforderlich: Ja
  • (array) $commentdata Data for the comment being created.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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