I have a question on the same topic…but wanting a different outcome. I can post it on FB, but then how do I track it?
Here is what I will post on FB:
The Variation Swatches plugin does not seem to respect the out of stock status of individual variations. I would like to have the swatch color hidden from the customer entirely if that particular color is out of stock.
If I disable the swatches plugin, then this behavior works as expected, the the name of the color in the default Woo variation drop down list is hidden by WOO, (when the checkbox for Products>Inventory>Out of Stock Visibility is checked).
When swatches plugin in enabled, the color swatches show up. Granted, they are not clickable, but I want them to be hidden altogether. Is there a way to make that happen?
As a side note, I noticed that Woo’s most recentupdate to 3.3.2 had the following note in its bug fix list: Fix – Set woocommerce_hide_invisible_variations to true so disabled variation attributes are hidden on product pages. So they may have just changed how this behavior works.
Also, i did find a snippet of php code that is supposed to fix this issue, but it did not work for me so I am not using it. If you are interested, here is the link: Found this code are this site. https://iconicwp.com/blog/hide-stock-products-woocommerce-catalog-pages/