WordPress Woocommerce how to delete image from file system when you delete it in a product
WordPress Woocommerce how to delete image from file system when you delete it in a product
)
Been struggling with how to do this...
I have a site where I from an external API get products for my woocommerce shop, and the API sends alot of images for some products, so I manually go into a product post and delete some of these images.
How can I achieve so that when I do this, these images will be deleted from both media library AND file folder?
I have already figured out how to delete them when I delete the product...
The issue is taht I would for example create a product that has 15 images, then delete 5 of them, have the product on my shop for ½ year and then delete the product, but then only the 10 images still linked to the product gets deleted and I end up over time having alot of unused images...
So how can I permanently delete images when I delete them via the product page in woocommerce.. (the little cross on the image)
Hope it makes sense :-)
Turbo Multi-language Translator
Make the better internet purchasing globaly
Turbosify SEO Speed Booster
5.0 (7)•Free plan available
Get better conversions by improving store loading speed
Installed
Turbo Multi-language Chat - AI Customer service in one hand