Description
Fires immediately after a comment is inserted into the database.
Occurrences
Filename | Line Number |
---|---|
wp-includes/comment.php | 2321 |
Parameters
Type | Name | Description |
---|---|---|
int | $comment_id | The comment ID. |
int|string | $comment_approved | 1 if the comment is approved, 0 if not, 'spam' if spam. |
array | $commentdata | Comment data. |
PHP Doc
/**
* Fires immediately after a comment is inserted into the database.
*
* @since 1.2.0
* @since 4.5.0 The `$commentdata` parameter was added.
*
* @param int $comment_id The comment ID.
* @param int|string $comment_approved 1 if the comment is approved, 0 if not, 'spam' if spam.
* @param array $commentdata Comment data.
*/