Deleting featured image of product when you delete a product (4 posts)

  1. lododicesimo
    Posted 2 years ago #

    I would like suggest to add a function that delete the featured image from WP when you delete a product_post.


  2. Roy Ho
    Posted 2 years ago #

    I don't believe that is a good idea. It is just like posts. When you delete a post, does the image get deleted?

    Because images/videos...etc are assets so it is usually important. You can always go to the media library and delete all "un-attached" images if you want.

  3. lododicesimo
    Posted 2 years ago #

    the un-attached image are all image that are not used, so i can delete them ?

    i update like 3000-4000 product every week and all the time i replace image and new one, then i delete undred of product so i am full of image that are big on my webdisk.

  4. Roy Ho
    Posted 2 years ago #

    Well if you have a particular use case for this, I suppose it would be useful in your case. You can always write a custom script to delete those as products are deleted and wouldn't be too hard.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic