📅  最后修改于: 2022-03-11 14:54:28.676000             🧑  作者: Mango
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 . '
';
}
}