WordPress at Your Fingertips
filter is not described

woocommerce_add_cart_item_data filter-hook . WC 1.0

Load cart item data - may be added by other plugins.

Usage

add_filter( 'woocommerce_add_cart_item_data', 'filter_function_name_5356', 10, 4 );
function filter_function_name_5356( $cart_item_data, $product_id, $variation_id, $quantity ){
	// filter...

	return $cart_item_data;
}
$cart_item_data
-
$product_id
-
$variation_id
-
$quantity
-

Where the hook is called

WC_Cart::add_to_cart()
woocommerce_add_cart_item_data
CartController::filter_request_data()
woocommerce_add_cart_item_data
woocommerce/includes/class-wc-cart.php 1138
$cart_item_data = (array) apply_filters( 'woocommerce_add_cart_item_data', $cart_item_data, $product_id, $variation_id, $quantity );
woocommerce/packages/woocommerce-blocks/src/StoreApi/Utilities/CartController.php 983-989
$request['cart_item_data'] = (array) apply_filters(
	'woocommerce_add_cart_item_data',
	$request['cart_item_data'],
	$product_id,
	$variation_id,
	$request['quantity']
);

Where in WP core the hook is used WooCommerce

Usage not found.