WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Deleting featured image of product when you delete a product (4 posts)

  1. lododicesimo
    Member
    Posted 6 months ago #

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

    https://wordpress.org/plugins/woocommerce/

  2. Roy Ho
    Member
    Posted 6 months 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
    Member
    Posted 6 months 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
    Member
    Posted 6 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic