Created
June 30, 2016 08:13
-
-
Save mikejolley/c4606aa52754b334f0f1bbe7e5b5ca6b to your computer and use it in GitHub Desktop.
Revisions
-
mikejolley created this gist
Jun 30, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ <?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; }