Removes product assigned images (featured and gallery only) on product delete.
Author: | Eduard V. Doloc (profile at wordpress.org) |
WordPress version required: | 4.7 |
WordPress version tested: | 6.5.2 |
Plugin version: | 1.1 |
Added to WordPress repository: | 04-06-2020 |
Last updated: | 15-04-2024 |
Rating, %: | 100 |
Rated by: | 5 |
Plugin URI: | https://uprise.ro |
Total downloads: | 3 699 |
Active installs: | 1 000+ |
Click to start download |
This small and lightweight plugin deletes all product images automatically when the product is deleted (from trash).
The plugin uses the “before_delete_post” action and runs a delete (wp_delete_post) for the product ID that is being deleted, this is done automatically and works with any number of products.
Contributions are welcomed on https://github.com/rwkyyy/delete-product-images-for-wc
Plugin is based on:
https://stackoverflow.com/a/45998408/5317637
FAQ
ChangeLog