WordPress filter hook
woocommerce_apply_with_individual_use_coupon
Defined by WooCommerce and fired by 5 plugins in total, running on 7M+ sites between them.
“Filters if a coupon can be applied alongside other individual use coupons.”
How to use woocommerce_apply_with_individual_use_coupon
It's a filter: your callback receives the value and 3 more arguments, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'woocommerce_apply_with_individual_use_coupon', function( $value, $coupon, $individual_use_coupon, $applied_coupons ) {
// Change $value here.
return $value;
}, 10, 4 );Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
5 plugins that fire woocommerce_apply_with_individual_use_coupon
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
apply_filters( 'woocommerce_apply_with_individual_use_coupon', false, $coupon, $individual_use_coupon, $applied_coupons )src/StoreApi/Utilities/CartController.php:1016 -
Advanced Dynamic Pricing and Discount Rules for WooCommerce20,000+ installs
apply_filters( 'woocommerce_apply_with_individual_use_coupon', false, $coupon, $coupon, $appliedCoupons )BaseVersion/Includes/CartProcessor/CartCouponsProcessor.php:198 -
Extended Coupon Features for WooCommerce FREE10,000+ installs
apply_filters( 'woocommerce_apply_with_individual_use_coupon', false, $the_coupon, $coupon, $applied_coupon_codes )includes/class-wjecf-controller.php:676 -
Bolt Checkout for WooCommerce100+ installs
apply_filters( 'woocommerce_apply_with_individual_use_coupon', false, $coupon, $applied_coupon, $this->object->get_applied_coupons() )includes/classes/class-bolt-discounts-helper.php:532 -
Horeka Core50+ installs
apply_filters( 'woocommerce_apply_with_individual_use_coupon', false, $the_coupon, $coupon, $this->applied_coupons )inc/Woocommerce/Functions.php:201
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.