duplicate_comment_id

duplicate_comment_id

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.8

apply_filters('duplicate_comment_id') is found 1 times:

  • /wp-includes/comment.php line 721
    717
    718
    719
    720
    721
    722
    723
    724
    725
    726
    727
    *
     * @param int   $dupe_id     ID of the comment identified as a duplicate.
     * @param array $commentdata Data for the comment being created.
     */
    $dupe_id = apply_filters( 'duplicate_comment_id', $dupe_id, $commentdata );
     
    if ( $dupe_id ) {
        /**
         * Fires immediately after a duplicate comment is detected.
         *
         * @since 3.0.0

See this hook used in plugins: