WordPress开发者和主题制作者的搜索引擎



trashed_comment ›

Since4.9.0
已弃用n/a
do_action( 'trashed_comment', $comment->comment_ID, $comment )
参数: (2)
  • (int) $comment_id The comment ID.
    Required: Yes
  • (WP_Comment) $comment The trashed comment.
    Required: Yes
定义在:
文档:

Fires immediately after a comment is sent to Trash.





源码

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