wp_insert_comment action
git-svn-id: https://develop.svn.wordpress.org/trunk@10465 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a93005de79
commit
55c270d136
|
@ -888,6 +888,9 @@ function wp_insert_comment($commentdata) {
|
||||||
if ( $comment_approved == 1)
|
if ( $comment_approved == 1)
|
||||||
wp_update_comment_count($comment_post_ID);
|
wp_update_comment_count($comment_post_ID);
|
||||||
|
|
||||||
|
$comment = get_comment($id);
|
||||||
|
do_action('wp_insert_comment', $id, $comment);
|
||||||
|
|
||||||
return $id;
|
return $id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue