WordPress at a glance
action is not described

wooocommerce_store_api_validate_cart_item action-hook . WC 1.0

Fire action to validate add to cart. Functions hooking into this should throw an \Exception to prevent add to cart from occurring.

Usage

add_action( 'wooocommerce_store_api_validate_cart_item', 'action_function_name_1249', 10, 2 );
function action_function_name_1249( $product, $cart_item ){
	// action...
}
$product(\WC_Product)
Product object being added to the cart.
$cart_item(array)
Cart item array.

Where the hook is called

CartController::validate_cart_item()
wooocommerce_store_api_validate_cart_item
woocommerce/packages/woocommerce-blocks/src/StoreApi/Utilities/CartController.php 535
do_action( 'wooocommerce_store_api_validate_cart_item', $product, $cart_item );

Where in WP core the hook is used WooCommerce

Usage not found.