do_action( 'wp_insert_comment', int $id , WP_Comment $comment )
Fires immediately after a comment is inserted into the database.
Description Description
Parameters Parameters
- $id
-
(int) The comment ID.
- $comment
-
(WP_Comment) Comment object.
Source Source
File: wp-includes/comment.php
Changelog Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |