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:
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.
-
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
WPFunnels5,000+ installs
apply_filters( 'woocommerce_checkout_cart_item_quantity', $quantity_badge, $cart_item, $cart_item_key )woocommerce/templates/checkout/review-order.php:89 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
YayCheckoutFewer than 10 installs
apply_filters( 'woocommerce_checkout_cart_item_quantity', $inline_quantity, $cart_item, $cart_item_key )includes/Renderer/CheckoutFragments.php:1070 -
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 -
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 -
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.