woocommerce_email_order_item_quantity
Email Order Item Quantity hook.
Usage
add_filter( 'woocommerce_email_order_item_quantity', 'wp_kama_woocommerce_email_order_item_quantity_filter', 10, 2 );
/**
* Function for `woocommerce_email_order_item_quantity` filter-hook.
*
* @param $qty_display
* @param $item
*
* @return
*/
function wp_kama_woocommerce_email_order_item_quantity_filter( $qty_display, $item ){
// filter...
return $qty_display;
}
- $qty_display
- -
- $item
- -
Changelog
| Since 2.4.0 | Introduced. |
Where the hook is called
woocommerce_email_order_item_quantity
woocommerce/templates/emails/email-fulfillment-items.php 156
echo wp_kses_post( apply_filters( 'woocommerce_email_order_item_quantity', $qty_display, $item->item ) );
woocommerce/templates/emails/plain/email-fulfillment-items.php 63
$product_name .= ' × ' . apply_filters( 'woocommerce_email_order_item_quantity', $item->qty, $item->item );
woocommerce/templates/emails/plain/email-order-items.php 55
$product_name .= ' × ' . apply_filters( 'woocommerce_email_order_item_quantity', $item->get_quantity(), $item );
woocommerce/templates/emails/plain/email-order-items.php 84
echo ' X ' . apply_filters( 'woocommerce_email_order_item_quantity', $item->get_quantity(), $item );
woocommerce/templates/emails/email-order-items.php 204
echo wp_kses_post( apply_filters( 'woocommerce_email_order_item_quantity', $qty_display, $item ) );
woocommerce/includes/class-wc-structured-data.php 617
'value' => apply_filters( 'woocommerce_email_order_item_quantity', $item->get_quantity(), $item ),