mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-29 11:32:21 +08:00
https://stackoverflow.com/questions/65140309/add-a-text-to-woocommerce-orders-displayed-total-price
6 lines
299 B
Text
6 lines
299 B
Text
add_filter( 'woocommerce_get_order_item_totals', 'custom_order_total_line_html', 1000, 3 );
|
|
function custom_order_total_line_html( $total_rows, $order, $tax_display ){
|
|
$total_rows['order_total']['value'] = __('excl. BTW ') . ' ' . $total_rows['order_total']['value'];
|
|
|
|
return $total_rows;
|
|
}
|