Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/comment.php | do_action | 2318 | /** * 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. */ |
Hook Parameters
Parameter 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. |