unspammed_comment

动作钩子


do_action( 'unspammed_comment', $comment->comment_ID, $comment )
参数
  • (string)
    $comment_id
    The comment ID as a numeric string.
    Required:
  • (WP_Comment)
    $comment
    The comment unmarked as spam.
    Required:
定义位置
  • wp-includes/comment.php
    , line 1709
引入
4.9.0
弃用

在评论未被标记为垃圾邮件后立即触发。

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