woocommerce_apply_with_individual_use_coupon, false, $the_coupon, $coupon, $this->applied_coupons
woocommerce_apply_with_individual_use_coupon, false, $the_coupon, $coupon, $this->applied_coupons
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('woocommerce_apply_with_individual_use_coupon, false, $the_coupon, $coupon, $this->applied_coupons') is found 1 times:
- /includes/class-wc-cart.php line 2089
if ( $this->applied_coupons ) { foreach ( $this->applied_coupons as $code ) { $coupon = new WC_Coupon( $code ); if ( $coupon->get_individual_use() && false === apply_filters( 'woocommerce_apply_with_individual_use_coupon', false, $the_coupon, $coupon, $this->applied_coupons ) ) { // Reject new coupon. $coupon->add_coupon_message( WC_Coupon::E_WC_COUPON_ALREADY_APPLIED_INDIV_USE_ONLY ); return false; }