WordPress filter hook
woocommerce_email_order_item_quantity
Defined by WooCommerce and fired by 23 plugins in total, running on 7.2M+ sites between them.
“Email Order Item Quantity hook.”
How to use woocommerce_email_order_item_quantity
It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'woocommerce_email_order_item_quantity', function( $qty_display, $item ) {
// Change $qty_display here.
return $qty_display;
}, 10, 2 );Argument names come from Kadence WooCommerce Email Designer's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
23 plugins that fire woocommerce_email_order_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_email_order_item_quantity', $qty_display, $item->item )templates/emails/email-fulfillment-items.php:159 -
Kadence WooCommerce Email Designer90,000+ installs
apply_filters( 'woocommerce_email_order_item_quantity', $qty_display, $item )templates/woo/emails/email-order-items.php:76 -
YayMail50,000+ installs
apply_filters( 'woocommerce_email_order_item_quantity', $qty_display, $item )templates/shortcodes/order-details/order-items/main.php:165 -
Mailonix20,000+ installs
apply_filters( 'woocommerce_email_order_item_quantity', $qty_display, $item )includes/templates/order-items/style-1.php:88 -
Email Templates Customizer and Designer for WordPress and WooCommerce20,000+ installs
apply_filters( 'woocommerce_email_order_item_quantity', $qty_display, $item )templates/woo/emails/email-order-items.php:87 -
Colissimo shipping methods for WooCommerce10,000+ installs
apply_filters( 'woocommerce_email_order_item_quantity', $qty_display, $item )src/Classes/Order/InvoiceGenerateAction.php:183 -
WebToffee eCommerce Marketing Automation10,000+ installs
apply_filters( 'woocommerce_email_order_item_quantity', $rp_decorator_qty_display, $rp_decorator_item )includes/wt-woo-templates/emails/email-order-items.php:98 -
E2Pdf10,000+ installs
apply_filters( 'woocommerce_email_order_item_quantity', $qty_display, $item )classes/model/e2pdf-shortcode.php:5248 -
NP Quote Request for WooCommerce8,000+ installs
apply_filters( 'woocommerce_email_order_item_quantity', $item->get_quantity(), $item )woocommerce/emails/email-order-items.php:78 -
WC Vendors3,000+ installs
apply_filters( 'woocommerce_email_order_item_quantity', $item->get_quantity(), $item )templates/emails/plain/vendor-order-items.php:27 -
Partial Shipment for WooCommerce1,000+ installs
apply_filters( 'woocommerce_email_order_item_quantity', $item->get_quantity(), $item )emails/email-partial-order-items.php:70 -
WP Hotel Booking WooCommerce1,000+ installs
apply_filters( 'woocommerce_email_order_item_quantity', $item->get_quantity(), $item )templates/woocommerce/emails/email-order-items.php:85 -
Email Customizer for WooCommerce200+ installs
apply_filters( 'woocommerce_email_order_item_quantity', $edpw_qty_display, $edpw_item )templates/order_items.php:112 -
Hotel Booking for WooCommerce100+ installs
apply_filters( 'woocommerce_email_order_item_quantity', $qty_display, $reg_item )templates/emails/email-booking-items.php:488 -
Split Pay100+ installs
apply_filters( 'woocommerce_email_order_item_quantity', $qty_display, $item )wc-templates/emails/email-order-items.php:101 -
Printcart Store70+ installs
apply_filters( 'woocommerce_email_order_item_quantity', $item->get_quantity(), $item )templates/quote/emails/plain/request-quote-items.php:18 -
MonstaManagement presents WebMonsta!70+ installs
apply_filters( 'woocommerce_email_order_item_quantity', $qty_display, $item )class.monstafrontend.php:943 -
Boopis WooCommerce RFQ50+ installs
apply_filters( 'woocommerce_email_order_item_quantity', $item['qty'], $item )templates/emails/email-quote-items.php:46 -
Email Templates Customizer for WooCommerce + Drag And Drop Template Builder40+ installs
apply_filters( 'woocommerce_email_order_item_quantity', $qty_display, $item )templates/woocommerce/emails/email-order-items.php:82 -
KramarFewer than 10 installs
apply_filters( 'woocommerce_email_order_item_quantity', $qty_display, $item )modules/email/class-email-manager.php:4956 -
Email CustomizerFewer than 10 installs
apply_filters( 'woocommerce_email_order_item_quantity', $qty_html, $item )blocks/order-items/view.php:182 -
YayMagic Email BuilderFewer than 10 installs
apply_filters( 'woocommerce_email_order_item_quantity', $qty_display, $item )templates/shortcodes/order-details/order-items/main.php:165 -
AAkron PersonalizationFewer than 10 installs
apply_filters( 'woocommerce_email_order_item_quantity', $qty_display, $item )admin/woocommerce/emails/email-order-items.php:98
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.