Select Page

Add this to your functions files to grey out ‘out of stock’ products in WooCommerce

//grey out out of stock products
function grey_out_variations_when_out_of_stock( $grey_out, $variation ) {
    if ( ! $variation->is_in_stock() )
        return false;
    return true;
}