woocommerce_coupon_get_discount_amount filter in coupon class

Closes #5244