WordPress at Your Fingertips
action is not described

woocommerce_remove_cart_item_from_session action-hook . WC 3.6.0

Allow 3rd parties to validate this item before it's added to cart and add their own notices.


add_action( 'woocommerce_remove_cart_item_from_session', 'action_function_name_3230', 10, 2 );
function action_function_name_3230( $remove_cart_item_from_session, $key ){
	// action...
If true, the item will not be added to the cart.
Default: false
Cart item key.


Since 3.6.0 Introduced.

Where the hook is called

woocommerce/includes/class-wc-cart-session.php 129
do_action( 'woocommerce_remove_cart_item_from_session', $key, $values );
woocommerce/includes/class-wc-cart-session.php 144
do_action( 'woocommerce_remove_cart_item_from_session', $key, $values );
woocommerce/includes/class-wc-cart-session.php 150
do_action( 'woocommerce_remove_cart_item_from_session', $key, $values );

Where in WP core the hook is used WooCommerce

Usage not found.