woocommerce_coupon_get_apply_quantity filter-hookWC 1.0

Usage

add_filter( 'woocommerce_coupon_get_apply_quantity', 'wp_kama_woocommerce_coupon_get_apply_quantity_filter', 10, 4 );

/**
 * Function for `woocommerce_coupon_get_apply_quantity` filter-hook.
 * 
 * @param  $apply_quantity 
 * @param  $item           
 * @param  $coupon         
 * @param  $that           
 *
 * @return 
 */
function wp_kama_woocommerce_coupon_get_apply_quantity_filter( $apply_quantity, $item, $coupon, $that ){

	// filter...
	return $apply_quantity;
}
$apply_quantity
-
$item
-
$coupon
-
$that
-

Where the hook is called

WC_Discounts::apply_coupon_percent()
woocommerce_coupon_get_apply_quantity
WC_Discounts::apply_coupon_fixed_product()
woocommerce_coupon_get_apply_quantity
WC_Discounts::apply_coupon_custom()
woocommerce_coupon_get_apply_quantity
woocommerce/includes/class-wc-discounts.php 369
$apply_quantity    = max( 0, apply_filters( 'woocommerce_coupon_get_apply_quantity', $apply_quantity, $item, $coupon, $this ) );
woocommerce/includes/class-wc-discounts.php 433
$apply_quantity = max( 0, apply_filters( 'woocommerce_coupon_get_apply_quantity', $apply_quantity, $item, $coupon, $this ) );
woocommerce/includes/class-wc-discounts.php 436
$apply_quantity = apply_filters( 'woocommerce_coupon_get_apply_quantity', $item->quantity, $item, $coupon, $this );
woocommerce/includes/class-wc-discounts.php 522
$apply_quantity = max( 0, apply_filters( 'woocommerce_coupon_get_apply_quantity', $apply_quantity, $item, $coupon, $this ) );

Where the hook is used in WooCommerce

Usage not found.