wp_insert_comment action

git-svn-id: https://develop.svn.wordpress.org/trunk@10465 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-01-29 22:22:20 +00:00
parent a93005de79
commit 55c270d136
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}