[WordPress] 外掛分享: Delete product images for WooCommerce

首頁外掛目錄 › Delete product images for WooCommerce
1,000+
安裝啟用
★★★★★
5/5 分(6 則評價)
24 天前
最後更新
問題解決
WordPress 4.7+ PHP 7.4+ v3.0 上架:2020-06-03

內容簡介

此外掛可自動刪除與 WooCommerce 產品相關聯的所有圖片,當該產品從垃圾桶中永久刪除時,確保不會刪除其他產品共用的圖片,適合經常進行產品匯入和清理的商店。

【主要功能】
• 自動刪除產品的特色圖片、畫廊圖片和變化圖片
• 僅在永久刪除時運行,不會在移動至垃圾桶時觸發
• 智能保護,跳過其他活躍產品使用的圖片
• 支援部分刪除,只刪除未使用的圖片
• 與批量刪除和「清空垃圾桶」功能兼容
• 完整的 WooCommerce 日誌整合,便於除錯

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Delete product images for WooCommerce」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Automatically deletes all images associated with a WooCommerce product when the product is permanently deleted from the Trash.
The plugin includes multiple safety mechanisms to ensure that shared images are never removed if they are used by other active products.
Features

Deletes:

Featured images
Gallery images
Variation images

Runs only on permanent delete:

Does NOT trigger when moving products to Trash

Smart protection:

Skips images used by other active products
Ignores products already in Trash

Partial deletion support:

Deletes only unused images
Keeps shared images intact

Bulk-safe:

Works with bulk delete and “Empty Trash”

Logging:

Full WooCommerce logger integration
Tracks every step for debugging

Admin control:

Toggle image deletion ON/OFF from the WordPress admin bar

Notes

The plugin is designed to be safe by default. If an image is detected as being used elsewhere, it will not be deleted.
Best suited for stores with frequent product imports/cleanup where media clutter can become an issue.

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

文章
Filter
Apply Filters
Mastodon