get_regular_price(); $discount = apply_filters( 'advanced_woo_discount_rules_get_product_discount_price_from_custom_price', $reg_price, $product, 1, $reg_price, 'discounted_price', true, true ); if ( $discount && $discount < $price ) { $price = $discount; } return $price; } /* * Disable cache for products discounts values */ public function awl_enable_discounts_cache( $enable ) { return false; } } endif; AWL_Wdr::instance();