WordPress at Your Fingertips
filter is not described

woocommerce_order_recalculate_coupons_coupon_object filter-hook . WC 3.2.0

Allow developers to filter this coupon before it get's re-applied to the order.

Usage

add_filter( 'woocommerce_order_recalculate_coupons_coupon_object', 'filter_function_name_3841', 10, 4 );
function filter_function_name_3841( $coupon_object, $coupon_code, $coupon_item, $that ){
	// filter...

	return $coupon_object;
}
$coupon_object
-
$coupon_code
-
$coupon_item
-
$that
-

Changelog

Since 3.2.0 Introduced.

Where the hook is called

WC_Abstract_Order::recalculate_coupons()
woocommerce_order_recalculate_coupons_coupon_object
woocommerce/includes/abstracts/abstract-wc-order.php 1251
$coupon_object = apply_filters( 'woocommerce_order_recalculate_coupons_coupon_object', $coupon_object, $coupon_code, $coupon_item, $this );

Where in WP core the hook is used WooCommerce

Usage not found.