Det här tillägget har inte testats med någon av de 3 senaste huvudversionerna av WordPress. Det kanske inte längre underhålls och kan ha kompatibilitetsproblem när det används tillsammans med nyare versioner av WordPress.

Delete product images for WooCommerce

Beskrivning

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 (server performance limited)

Contributions are welcomed on https://github.com/rwkyyy/delete-product-images-for-wc

Installation

  1. Ladda ner tillägget
  2. Upload it to your site (if you’ve installed it through WordPress Dashboard skip this step)
  3. Aktivera
  4. Enjoy!

Vanliga frågor

Will this work with any product?

Yes, it should work with any type of product (CPT).

Where can I see it working?

Please check the default WooCommerce logs (Woo > Status > Logs)

Can you make it work with more CPTs?

To be honest, I did not found the motivation in putting the work for making the plugin compatible with any CPT, but if I see interest in this plugin I’ll do that in time, or if you want to submit the update/any other updates yourself, just make a pull on Github and I’ll update it here.

Recensioner

9 april 2025 1 svar
I delete the products and then permanently delete and it doesn’t work
22 september 2023
Cumple con su función muy bien y es de gran ayuda para ahorrar espacio en el servidor.
21 april 2022
Just be carefull. In order for the images to be deleted you have to delete permanently the product!
Läs alla 7 betyg

Bidragsgivare och utvecklare

”Delete product images for WooCommerce” är programvara med öppen källkod. Följande personer har bidragit till detta tillägg.

Bidragande personer

”Delete product images for WooCommerce” har översatts till 1 språk. Tack till översättarna för deras bidrag.

Översätt ”Delete product images for WooCommerce” till ditt språk.

Intresserad av programutveckling?

Läs programkoden, kika på SVN-filförvaret eller prenumerera på utvecklarloggen via RSS.

Ändringslogg

2.0

  • rewrote plugin logic for better handling of both database and filesystem
  • implemented multiple safeguards and error-checking
  • fixed a bug where in some cases the files would not get deleted
  • added logging (wc logs) for easy tracking of the activity

1.0

  • Första utgåvan