woocommerce_update_cart_validation, true, $cart_item_key, $values, $quantity
woocommerce_update_cart_validation, true, $cart_item_key, $values, $quantity
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('woocommerce_update_cart_validation, true, $cart_item_key, $values, $quantity') is found 1 times:
- /includes/class-wc-form-handler.php line 796
continue; } // Update cart validation. $passed_validation = apply_filters( 'woocommerce_update_cart_validation', true, $cart_item_key, $values, $quantity ); // is_sold_individually. if ( $_product->is_sold_individually() && $quantity > 1 ) { /* Translators: %s Product title. */ wc_add_notice( sprintf( __( 'You can only have 1 %s in your cart.', 'woocommerce' ), $_product->get_name() ), 'error' ); $passed_validation = false;