daily pastebin goal
32%
SHARE
TWEET

WooCommerce - Remove payment method from order items tables

lorro Mar 23rd, 2017 61 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
Top