mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-30 11:42:22 +08:00
https://stackoverflow.com/questions/71074754/append-a-measuring-unit-to-the-quantity-field-in-woocommerce-email-notifications/71076413
6 lines
259 B
Text
6 lines
259 B
Text
function filter_woocommerce_email_order_item_quantity( $qty_display, $item ) {
|
|
$qty_display = $qty_display . ' VE';
|
|
|
|
return $qty_display;
|
|
}
|
|
add_filter( 'woocommerce_email_order_item_quantity', 'filter_woocommerce_email_order_item_quantity', 10, 2 );
|