woocommerce_coupon_validate_maximum_amount, $coupon->get_maximum_amount(
woocommerce_coupon_validate_maximum_amount, $coupon->get_maximum_amount(
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('woocommerce_coupon_validate_maximum_amount, $coupon->get_maximum_amount(') is found 1 times:
- /includes/class-wc-discounts.php line 771
*/ protected function validate_coupon_maximum_amount( $coupon ) { $subtotal = wc_remove_number_precision( $this->get_object_subtotal() ); if ( $coupon->get_maximum_amount() > 0 && apply_filters( 'woocommerce_coupon_validate_maximum_amount', $coupon->get_maximum_amount() < $subtotal, $coupon ) ) { $allowed_tags = array( 'span' => array( 'class' => true, ), 'bdi' => true, 'small' => true,