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
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
The delete_attachment
action is fired when wp_delete_attachment()
function is called to delete an item in the media library.