On this page
do_action( 'spam_comment', int $comment_id, WP_Comment $comment )
Fires immediately before a comment is marked as Spam.
Parameters
$comment_idint-
The comment ID.
$commentWP_Comment-
The comment to be marked as spam.
Source
File: wp-includes/comment.php. View all references
do_action( 'spam_comment', $comment->comment_ID, $comment );
Related
Used By
| Used By | Description |
|---|---|
| wp_spam_comment() wp-includes/comment.php | Marks a comment as Spam. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/spam_comment