trashed_comment

动作钩子
do_action( 'trashed_comment', $comment->comment_ID, $comment )
参数
  • (string) $comment_id The comment ID as a numeric string.
    Required:
  • (WP_Comment) $comment The trashed comment.
    Required:
定义位置
相关勾子
untrashed_commenttrash_commentuntrash_commentedit_commentdeleted_comment
相关方法
the_commentwp_trash_commentwp_untrash_commentedit_commenthave_commentscheck_comment
引入
4.9.0
弃用
-

在评论被送入垃圾箱后立即触发。

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