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

Fires immediately after a comment is unmarked as Spam.

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

add_action( 'unspammed_comment', 'wp_kama_unspammed_comment_action', 10, 2 );

/**
 * Function for `unspammed_comment` action-hook.
 * 
 * @param string     $comment_id The comment ID as a numeric string.
 * @param WP_Comment $comment    The comment unmarked as spam.
 *
 * @return void
 */
function wp_kama_unspammed_comment_action( $comment_id, $comment ){

	// action...
}
$comment_id(строка)
The comment ID as a numeric string.
$comment(WP_Comment)
The comment unmarked as spam.

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

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

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

wp_unspam_comment()
unspammed_comment
wp-includes/comment.php 1711
do_action( 'unspammed_comment', $comment->comment_ID, $comment );

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

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