apply_filters( 'woocommerce_pre_remove_cart_item_from_session', bool $remove_cart_item_from_session , string $key , array $values )
Allow 3rd parties to validate this item before it’s added to cart and add their own notices.
Description Description
Parameters Parameters
- $remove_cart_item_from_session
-
If true, the item will not be added to the cart. Default: false.
- $key
-
Cart item key.
- $values
-
Cart item values e.g. quantity and product_id.
Source Source
File: includes/class-wc-cart-session.php
Changelog Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |