Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/comment.php | do_action | 1641 | /** * Fires immediately before a comment is marked as Spam. * * @since 2.9.0 * @since 4.9.0 Added the `$comment` parameter. * * @param int $comment_id The comment ID. * @param WP_Comment $comment The comment to be marked as spam. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
int | $comment_id | The comment ID. |
WP_Comment | $comment | The comment to be marked as spam. |