Advertisement
majeedraza

WooCommerce - Remove payment method from order items tables

Mar 23rd, 2017
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. <?php
  2.   // WooCommerce - Remove payment method from order items tables
  3.   add_filter( 'woocommerce_get_order_item_totals', 'remove_payment_method', 40 );
  4.   function remove_payment_method( $total_rows ) {
  5.     if ( isset( $total_rows['payment_method'] ) ) {
  6.       unset ( $total_rows['payment_method'] );
  7.     }
  8.     return $total_rows;    
  9.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement