Using WordPress ‘delete_attachment’ PHP action
This article discusses how to use the WordPress 'delete_attachment' PHP action for various purposes such as logging attachment deletions, notifying admins, removing metadata, updating post counts, and deleting associated image…