The post gets deleted just as planned. But, I would like to run custom code during the post deletion process. How can I hook custom code with the button press for delete post?
Otherwise, you can use the standard WordPress "post_updated" hook where you have luxury to check before and after post status and you can hook in your custom code accordingly.