3

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

4

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

| improve this answer | |
  • 1
    i already got the snippets but still your answer is correct. thanks by the way – Danryl Carpio Apr 26 '16 at 5:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.