| 开发者 | mcfarhat |
|---|---|
| 更新时间 | 2026年9月20日 21:28 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
wc_product_meta_lookupwc_product_attributes_lookupwc_reserved_stockwc_stock_notifications and its meta tablewc_category_lookup, when categories are removed/wp-content/plugins/woo-product-remover directory, or install the plugin through the WordPress plugins screen directly.No. The plugin only touches product data. Orders, customers, coupons and settings are left exactly as they are. This is also why it is safe to use with High-Performance Order Storage enabled.
The plugin will tell you there was nothing to remove. It still runs its cleanup pass, which is useful if a previous run was interrupted or if products were deleted some other way and left rows behind.
Only if you tick the box. The default is to keep them, so you do not have to rebuild your category structure just to clear the catalog. When you do tick it, WooCommerce's own internal terms are always preserved: the product type terms (simple, grouped, variable, external), the product visibility terms (featured, outofstock, rated-1 through rated-5), and your default product category. Deleting those would break the store rather than clean it.
Only if you tick that box. When you do, images are deleted through WordPress itself so the files and all generated thumbnail sizes are removed from your uploads folder too. Only images uploaded directly to a product are removed. If a product simply points at an image from your media library that was uploaded elsewhere, that image is left alone.
Very. Removal is done in direct SQL rather than loading each product into memory one at a time, so clearing tens of thousands of products takes seconds rather than hours.
No. Work is split into batches of 200 products per request. If you want to tune that, use the wpr_batch_size filter.
Yes. Because deletion is done in SQL, the usual WordPress and WooCommerce delete hooks do not fire, so the plugin provides its own:
wpr_before_delete_batch — passed the array of IDs about to be deletedwpr_after_delete_batch — passed the array of IDs that were deletedwpr_removal_complete — passed the final counterswpr_batch_size — filter the number of products per requestwpr_product_post_types — filter which post types count as productswpr_term_taxonomies — filter which taxonomies the category option clears