Add a text to orders displayed total price in WooCommerce

Add a text to orders displayed total price in WooCommerce on your child site.

Snippet Type

Execute on Child Sites

Snippet

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. TAX ') . ' ' . $total_rows['order_total']['value'];

    return $total_rows;
}
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.