WooCommerce – remove payment method from emails


<?php // Do not include this if already open!
/**
* Code goes in theme functions.php.
*/
add_filter( 'woocommerce_get_order_item_totals', 'custom_woocommerce_get_order_item_totals' );
function custom_woocommerce_get_order_item_totals( $totals ) {
unset( $totals['payment_method'] );
return $totals;
}

view raw

gistfile1.txt

hosted with ❤ by GitHub


Posted

in

by

Tags:

%d bloggers like this: