Using WooCommerce, I've set up a category named "in-stock" and want to create a condition where any (including variant and simple) products with a positive stock quantity are automatically assigned to this category (we use WordPress post categories to create our product collection hierarchy). Ideally with a code snippet, but if anyone knows a lightweight plugin, that's great (I can't find one).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…