How to delete WooCommerce Products than have a specific custom field?


I’m using a plugin that adds a wholesale price to WooCommerce products.

Now I need to delete all the products that have an empty wholesale price to only keep the products I want to keep on the wholesale part of my store.

Unfortunately, WP doesn’t have the possibility to filter like I want to do to display only those kind of wholesale products and then bulk delete them.

The name of the field is wholesale_customer_wholesale_prices.

How can I achieve that easily?

Thanks a lot

SeFi 2 months 0 Answers 9 views 0

Leave an answer