Add Payment Type to WooCommerce Admin Email

Here’s a little snippet to add the order payment type to the WooCommerce Admin New Order email, in an upgrade-safe manner:


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 '

Payment Method: ' . $order->payment_method_title . '

'; } }

Add that bit of code to your theme’s functions.php file, or even to your own custom site plugin. All manner of order details can be added to the admin email in the same way, for quick reference. See the WC_Order class for the full set of order attributes available.