spammed_comment хук-событиеWP 2.9.0

Fires immediately after a comment is marked as Spam.

Использование

add_action( 'spammed_comment', 'wp_kama_spammed_comment_action', 10, 2 );

/**
 * Function for `spammed_comment` action-hook.
 * 
 * @param int        $comment_id The comment ID.
 * @param WP_Comment $comment    The comment marked as spam.
 *
 * @return void
 */
function wp_kama_spammed_comment_action( $comment_id, $comment ){

	// action...
}
$comment_id(int)
The comment ID.
$comment(WP_Comment)
The comment marked as spam.

Список изменений

С версии 2.9.0 Введена.
С версии 4.9.0 Added the $comment parameter.

Где вызывается хук

wp_spam_comment()
spammed_comment
wp-includes/comment.php 1658
do_action( 'spammed_comment', $comment->comment_ID, $comment );

Где используется хук в WordPress

Использование не найдено.