woocommerce_coupon_is_valid_for_cart

woocommerce_coupon_is_valid_for_cart

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_coupon_is_valid_for_cart') is found 1 times:

  • /includes/class-wc-coupon.php line 914
    	 *
    	 * @return bool
    	 */
    	public function is_valid_for_cart() {
    		return apply_filters( 'woocommerce_coupon_is_valid_for_cart', $this->is_type( wc_get_cart_coupon_types() ), $this );
    	}
    
    	/**
    	 * Check if a coupon is valid for a product.
    	 *
    	 * @param WC_Product $product Product instance.