Created
July 15, 2021 14:39
-
-
Save jorpdesigns/06c4ebbc517b0943266fc34af9f44c38 to your computer and use it in GitHub Desktop.
Snippet to hide (incl. tax) suffix in WooCommerce order display
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_get_order_item_totals', 'wc_get_order_item_totals', 10, 3 ); | |
function wc_get_order_item_totals( $total_rows, $order, $tax_display ) { | |
$total_rows['order_total'] = array( | |
'label' => __( 'Total:', 'woocommerce' ), | |
'value' => $order->get_formatted_order_total(), | |
); | |
return $total_rows; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment