Add Payment Type to WooCommerce Admin Email

PHOTO EMBED

Sun Nov 13 2022 18:20:07 GMT+0000 (Coordinated Universal Time)

Saved by @brozool #php

add_action( 'woocommerce_email_after_order_table', 'add_payment_method_to_admin_new_order', 15, 2 );
 
function add_payment_method_to_admin_new_order( $order, $is_admin_email ) {
  if ( $is_admin_email ) {
    echo '<p><strong>Payment Method:</strong> ' . $order->payment_method_title . '</p>';
  }
}
content_copyCOPY

https://www.wpexplorer.com/best-woocommerce-snippets/