Why was this feature removed in WC2.7/3.0? Adding that code back in didn’t resolve the problem for us. Is there any special location or other dependencies as to how that code is to be integrated back in? If I send you a copy of our functions.php can you insert that code snippet in the correct format for us to try to see if that will get it working?