Skip to content

Instantly share code, notes, and snippets.

View getmanzooronline's full-sized avatar
👨‍💻
Working from Home

Mansoorkhan T K getmanzooronline

👨‍💻
Working from Home
View GitHub Profile
@mikejolley
mikejolley / gist:c4606aa52754b334f0f1bbe7e5b5ca6b
Created June 30, 2016 08:13
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;