Action hook 'spammed_comment'

in WP Core File wp-includes/comment.php at line 1661

Description

Fires immediately after a comment is marked as Spam.

Occurrences

Filename Line Number
wp-includes/comment.php 1661

Parameters

Type Name Description
int $comment_id The comment ID.
WP_Comment $comment The comment marked as spam.

PHP Doc

/**
		 * Fires immediately after 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 marked as spam.
		 */