wooocommerce_store_api_validate_cart_item

wooocommerce_store_api_validate_cart_item

Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.6.3.1

do_action('wooocommerce_store_api_validate_cart_item') is found 1 times:

  • /packages/woocommerce-blocks/src/StoreApi/Utilities/CartController.php line 577
    		 *
    		 * @param \WC_Product $product Product object being added to the cart.
    		 * @param array       $cart_item Cart item array.
    		 */
    		do_action( 'wooocommerce_store_api_validate_cart_item', $product, $cart_item );
    	}
    
    	/**
    	 * Validate all coupons in the cart and check for errors.
    	 *
    	 * @throws RouteException Exception if invalid data is detected.