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.


Top ↑

Source Source

File: includes/class-wc-cart-session.php


Top ↑

Changelog Changelog

Changelog
Version Description
3.6.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.