unspam_comment action-hook . WP 2.9.0
Fires immediately before a comment is unmarked as Spam.
Usage
add_action( 'unspam_comment', 'action_function_name_1568', 10, 2 ); function action_function_name_1568( $comment_id, $comment ){ // action... }
- $comment_id(int)
- The comment ID.
- $comment(WP_Comment)
- The comment to be unmarked as spam.
Changelog
Since 2.9.0 | Introduced. |
Since 4.9.0 | Added the $comment parameter. |
Where the hook is called
unspam_comment
wp-includes/comment.php 1710
do_action( 'unspam_comment', $comment->comment_ID, $comment );