• Resolved WinsleyJ

    (@winsleyj)


    Hi,

    Im trying to remove the bank details from the auto generated mails by woocommmerce but i cant find out how to do this. I want to remove the Payment section with:
    “Payment Completed by <NAME> (IBAN:………,BIC:……..)
    Please let me know how to do this!

Viewing 2 replies - 1 through 2 (of 2 total)
  • <?php
      add_filter( 'woocommerce_get_order_item_totals', 'remove_payment_method', 40 );
      function remove_payment_method( $total_rows ) {
        if ( isset( $total_rows['payment_method'] ) ) {
          unset ( $total_rows['payment_method'] );
        }
        return $total_rows;    
      }
    

    The code goes in functions.php for your child theme or you can use the “My Custom Functions” plugin.

    Thread Starter WinsleyJ

    (@winsleyj)

    Thanks, Lorro!

    • This reply was modified 7 years, 8 months ago by WinsleyJ. Reason: Resolved
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide Bank details in all e-mails’ is closed to new replies.