apply_filters( 'woocommerce_add_to_cart_validation' )
Hook: woocommerce_add_to_cart_validation (legacy).
Description Description
Allow 3rd parties to validate if an item can be added to the cart. This is a legacy hook from Woo core. This filter will be deprecated because it encourages usage of wc_add_notice. For the API we need to capture notices and convert to exceptions instead.
Source Source
File: packages/woocommerce-blocks/src/StoreApi/Utilities/CartController.php