# compatibility Learn dash LMS

```php
 add_filter( 'woocommerce_cart_item_subtotal' ,function($sub_total, $cart_item, $cart_item_key){
	if(isset($cart_item['data']->awdr_discount_price) && !empty($cart_item['data']->awdr_discount_price)){
		 if (isset($cart_item['line_total']) && function_exists('wc_price')) {
            return wc_price($cart_item['line_total'], array());
        }
	}
	return $sub_total;
 }, 1000, 3 );
```
