Fires immediately after a comment is inserted into the database.
Parameters
$idint- The comment ID.
$commentWP_Comment- Comment object.
Source
do_action( 'wp_insert_comment', $id, $comment );
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
| CARVIEW |
Fires immediately after a comment is inserted into the database.
$idint$commentWP_Commentdo_action( 'wp_insert_comment', $id, $comment );
| Used by | Description |
|---|---|
wp_insert_comment()wp-includes/comment.php | Inserts a comment into the database. |
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
Usage: