W3cubDocs

/WordPress

do_action( ‘unspammed_comment’, string $comment_id, WP_Comment $comment )

Fires immediately after a comment is unmarked as Spam.

Parameters

$comment_idstring
The comment ID as a numeric string.
$commentWP_Comment
The comment unmarked as spam.

Source

do_action( 'unspammed_comment', $comment->comment_ID, $comment );

Changelog

Version Description
4.9.0 Added the $comment parameter.
2.9.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/unspammed_comment