From 55c270d136b3b7119870416eb5298c418c8999ca Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 29 Jan 2009 22:22:20 +0000 Subject: [PATCH] wp_insert_comment action git-svn-id: https://develop.svn.wordpress.org/trunk@10465 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/comment.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 18bf0e1965..89c03d044e 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; }