I am very new in wordpress and I am currently developing a wordpress plugin, I just want to know if there is a wordpress plugin hook that will run when one or more file of wordpress media is deleted.

Thanks,

Dan

1 Answer
1

The delete_attachment action is fired when wp_delete_attachment() function is called to delete an item in the media library.

Leave a Reply

Your email address will not be published. Required fields are marked *