Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save getmanzooronline/a16605fb8e657280dc207356a8ff3e67 to your computer and use it in GitHub Desktop.
Save getmanzooronline/a16605fb8e657280dc207356a8ff3e67 to your computer and use it in GitHub Desktop.
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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment