WordPress filter hook

woocommerce_checkout_cart_item_quantity

Defined by WooCommerce and fired by 38 plugins in total, running on 8.5M+ sites between them.

How to use woocommerce_checkout_cart_item_quantity

It's a filter: your callback receives the value and 2 more arguments, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'woocommerce_checkout_cart_item_quantity', function( $value, $cart_item, $cart_item_key ) {
	// Change $value here.
	return $value;
}, 10, 3 );

Argument names come from Essential Addons for Elementor's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

38 plugins that fire woocommerce_checkout_cart_item_quantity

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. WooCommerce icon WooCommerce7+ million installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', esc_html( $cart_item['quantity'] ) ) . '</strong>', $cart_item, $cart_item_key ) templates/checkout/review-order.php:58
  2. Essential Addons for Elementor icon Essential Addons for Elementor1+ million installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ) includes/Template/Woocommerce/Checkout/Woo_Checkout_Helper.php:440
  3. CartFlows icon CartFlows200,000+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ) modules/checkout/templates/checkout/instant-checkout-review-order.php:42
  4. ShopEngine icon ShopEngine90,000+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ) widgets/checkout-review-order/screens/review-order-template.php:29
  5. Germanized for WooCommerce icon Germanized for WooCommerce70,000+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', esc_html( $cart_item['quantity'] ) ) . '</strong>', $cart_item, $cart_item_key ) templates/checkout/review-order-product-table.php:49
  6. FunnelKit icon FunnelKit30,000+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', '<strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ) modules/checkouts/builder/elementor/html/mini-cart/mini-cart-items.php:115
  7. Fluid Checkout for WooCommerce icon Fluid Checkout for WooCommerce20,000+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', esc_html( $cart_item['quantity'] ) ) . '</strong>', $cart_item, $cart_item_key ) inc/checkout-steps.php:9185
  8. ShopBuilder icon ShopBuilder10,000+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ) templates/elementor/checkout/customized-order-review.php:24
  9. Airwallex Online Payments Gateway icon Airwallex Online Payments Gateway10,000+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '%s ×', $airwallex_cart_item['quantity'] ) . '</strong>', $airwallex_cart_item, $airwallex_cart_item_key ) html/inc/cart.php:41
  10. SellKit icon SellKit7,000+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ) includes/block-editor/blocks/checkout/inner-blocks/review-order/class.php:100
  11. WPFunnels icon WPFunnels5,000+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', $quantity_badge, $cart_item, $cart_item_key ) woocommerce/templates/checkout/review-order.php:89
  12. WowStore icon WowStore4,000+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ) blocks/woo/checkout/order_review/Template.php:41
  13. Responsive Addons for Elementor icon Responsive Addons for Elementor3,000+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ) traits/responsive-addons-for-elementor-woo-checkout-helper.php:464
  14. MStore API icon MStore API2,000+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf('× %s', $cart_item['quantity']) . '</strong>', $cart_item, $cart_item_key ) templates/mstore-api-template.php:387
  15. Payment Plugins Braintree For WooCommerce icon Payment Plugins Braintree For WooCommerce2,000+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ) templates/checkout/recurring-totals.php:18
  16. WP Hotel Booking WooCommerce icon WP Hotel Booking WooCommerce1,000+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ) templates/woocommerce/checkout/review-order.php:48
  17. ShopPress icon ShopPress600+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ) public/templates/checkout/checkout-order-review.php:32
  18. Global Payments SecureSubmit Gateway icon Global Payments SecureSubmit Gateway500+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">'.sprintf('× %s', $item['quantity']).'</strong>', $item, $key ) templates/masterpass-review-order.php:59
  19. StoreBuild icon StoreBuild400+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', sprintf('%s', $storebuild_cart_item['quantity']), $storebuild_cart_item, $storebuild_cart_item_key ) public/woocommerce/checkout/review-order.php:44
  20. Hide Address Fields for WooCommerce icon Hide Address Fields for WooCommerce300+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ) woocommerce/checkout/review-order.php:39
  21. FoodBook Lite icon FoodBook Lite300+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ) template/woocommerce/checkout/review-order.php:39
  22. Additional Fees For WooCommerce Checkout icon Additional Fees For WooCommerce Checkout200+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ) woocommerce/checkout/review-order.php:39
  23. KiriminAja Official icon KiriminAja Official200+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ) templates/woocommerce/checkout/review-order.php:43
  24. Product Page Customizer for WooCommerce icon Product Page Customizer for WooCommerce60+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $sppcfw_cart_item['quantity'] ) . '</strong>', $sppcfw_cart_item, $sppcfw_cart_item_key ) frontend/Enable-Quick-Checkout/templates/checkout/default-review-order.php:39
  25. Checkout Custom Fields Builder for WooCommerce icon Checkout Custom Fields Builder for WooCommerce30+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ) templates/frontend/checkout/review-order-table.php:31
  26. Custom & One-Page Checkout for Woo icon Custom & One-Page Checkout for Woo10+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', sprintf( '× %s', $cart_item['quantity'] ), $cart_item, $cart_item_key ) templates/woocommerce/checkout/review-order.php:47
  27. Briqpay for WooCommerce icon Briqpay for WooCommerce10+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf('× %s', $cart_item['quantity']) . '</strong>', $cart_item, $cart_item_key ) includes/class-b2b-checkout.php:528
  28. Max Elements for Elementor icon Max Elements for Elementor10+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', $cart_item['quantity'], $cart_item, $cart_item_key ) elementor/helpers/woo_checkout.php:440
  29. TrafficFlow OnePageCheckout for WooCommerce icon TrafficFlow OnePageCheckout for WooCommerce10+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $opcw_qty ) . '</strong>', $opcw_cart_item, $opcw_cart_item_key ) templates/part-summary-items.php:61
  30. On-Page Checkout for WooCommerce icon On-Page Checkout for WooCommerce10+ installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ) includes/ajax-handler.php:444
  31. SKYRO Checkout for WooCommerce icon SKYRO Checkout for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_checkout_cart_item_quantity', sprintf( '× %s', $cart_item['quantity'] ), $cart_item, $cart_item_key ) src/FrontEnd/TemplateFiles/TemplateParts/order-items.php:36
  32. Customize Checkout for WooCommerce icon Customize Checkout for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ) public/customize-wc-checkout-buy-public.php:151
  33. Checkout Popup icon Checkout PopupFewer than 10 installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ) woocommerce/checkout/review-order.php:45
  34. Cresta Checkout for WooCommerce icon Cresta Checkout for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_checkout_cart_item_quantity', '', $cresta_bc_item, $cresta_bc_key ) templates/wc/checkout/review-order.php:38
  35. YayCheckout icon YayCheckoutFewer than 10 installs apply_filters( 'woocommerce_checkout_cart_item_quantity', $inline_quantity, $cart_item, $cart_item_key ) includes/Renderer/CheckoutFragments.php:1070
  36. ithan devvn checkout for woocommerce icon ithan devvn checkout for woocommerceFewer than 10 installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ) templates/checkout/review-order.php:28
  37. Bazario icon BazarioFewer than 10 installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '× %s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ) elements/widgets/checkout-order-review/order-review-template.php:29
  38. WS Custom Checkout icon WS Custom CheckoutFewer than 10 installs apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf('× %s', $cart_item['quantity']) . '</strong>', $cart_item, $cart_item_key ) checkout/templates/for_replacement/review-order.php:43

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.