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; } } endif; AWL_Wdr::instance();