daily pastebin goal
68%
SHARE
TWEET

WooCommerce - Remove payment method from order items tables

lorro Mar 23rd, 2017 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top