diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 18bf0e196..89c03d044 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -888,6 +888,9 @@ function wp_insert_comment($commentdata) { if ( $comment_approved == 1) wp_update_comment_count($comment_post_ID); + $comment = get_comment($id); + do_action('wp_insert_comment', $id, $comment); + return $id; }