# visible variation price on strike out

```php
if(!function_exists('woo_discount_rules_variation_is_visible_method')){
    function woo_discount_rules_variation_is_visible_method($visible, $product){
        //check the condition here based on $product
        //If doesn't required to load price of product then assign $visible = false
        return $visible;
    }
}
add_filter('woo_discount_rules_variation_is_visible', 'woo_discount_rules_variation_is_visible_method', 10, 2);
```
