woocommerce_coupon_is_valid_for_cart filter-hookWC 1.0

Check if a coupon is valid.

Usage

add_filter( 'woocommerce_coupon_is_valid_for_cart', 'wp_kama_woocommerce_coupon_is_valid_for_cart_filter', 10, 2 );

/**
 * Function for `woocommerce_coupon_is_valid_for_cart` filter-hook.
 * 
 * @param  $is_type 
 * @param  $that    
 *
 * @return 
 */
function wp_kama_woocommerce_coupon_is_valid_for_cart_filter( $is_type, $that ){

	// filter...
	return $is_type;
}
$is_type
-
$that
-

Where the hook is called

WC_Coupon::is_valid_for_cart()
woocommerce_coupon_is_valid_for_cart
woocommerce/includes/class-wc-coupon.php 882
return apply_filters( 'woocommerce_coupon_is_valid_for_cart', $this->is_type( wc_get_cart_coupon_types() ), $this );

Where the hook is used in WooCommerce

Usage not found.