从数据库中删除注释后立即触发。
原型
do_action( 'deleted_comment', int $comment_id, WP_Comment $comment )
参数
$comment_id
(int)
评论ID。
$comment
(WP_Comment)
删除的评论。
源文件
路径:wp-includes/comment.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/deleted_comment/