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:
定义位置
  • wp-includes/comment.php
    , line 1559
引入
4.9.0
弃用

Fires immediately after a comment is sent to Trash.

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