Searching a hook which triggers when deleting a post to get all comments
There are few other hooks to manipulated the trashed comment. ‘save_post’: called after post is saved. You can check status of the post and manipulate its comment accordingly. ‘trashed_comment’: called after comment is moved to trash status. ‘transition_comment_status’: called whenever comment status is changed. There are probably few others too. But, it depends what you … Read more