Terry Tsang

Terry Tsang
About
Add Payment Method to WooCommerce New Admin Order Email

Add “Payment Method” to WooCommerce New Order Email

Sometimes as an admin we would like to know what kind of payment method the customer used for the new order.

Below is the code you may copy and paste at the bottom of functions.php where you can access it through > Theme File Editor > functions.php.

 
function tt_add_payment_method_to_new_order_email( $order, $is_admin_email ) {
  if ( $is_admin_email ) {
    echo 'Payment Method:' . $order->payment_method_title ;
  }
}

add_action( 'woocommerce_email_after_order_table', 'tt_add_payment_method_to_new_order_email', 15, 2 );

Leave a Comment