A simple method to grey out unavailable options in variation select fields

Source : How to display out of stock variations as unavailable in WooCommerce – Plugin Republic