woocommerce_pre_remove_cart_item_from_session

woocommerce_pre_remove_cart_item_from_session

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_pre_remove_cart_item_from_session') is found 1 times:

  • /includes/class-wc-cart-session.php line 152
    			 * @param string     $key Cart item key.
    			 * @param array      $values Cart item values e.g. quantity and product_id.
    			 * @param WC_Product $product The product being added to the cart.
    			 */
    			if ( apply_filters( 'woocommerce_pre_remove_cart_item_from_session', false, $key, $values, $product ) ) {
    				$update_cart_session = true;
    				/**
    				 * Fires when cart item is removed from the session.
    				 *
    				 * @since 3.6.0
    				 *