woocommerce_order_recalculate_coupons_coupon_object

woocommerce_order_recalculate_coupons_coupon_object

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_order_recalculate_coupons_coupon_object') is found 1 times:

  • /includes/abstracts/abstract-wc-order.php line 1413
    			 * Allow developers to filter this coupon before it gets re-applied to the order.
    			 *
    			 * @since 3.2.0
    			 */
    			$coupon_object = apply_filters( 'woocommerce_order_recalculate_coupons_coupon_object', $coupon_object, $coupon_code, $coupon_item, $this );
    
    			if ( $coupon_object ) {
    				$discounts->apply_coupon( $coupon_object, false );
    			}
    		}