如何在woocommerce电子邮件中扩展和添加一些字段?

I'm setting up a new website with WC vendors plugin and woocommerce. And I want when customer by some product automatically to get mail from vendors about his bank details because I use the direct bank payment method and vendor to get the mail about the purchase that made for his product. Right now only admin gets mails and customer gets emails about admin bank details. I store this data in wp_usermeta.

Thank you

This is something that I try but this has $sent_to_admin and this is something that I do not want.

$bank_account_name = get_user_meta($order->user_id, 'wcv_bank_account_name', true);
$bank_account_number = het_user_meta($order->user_id, 'wcv_bank_account_number', true);
$bank_name = get_user_meta($order->user_id, 'wcv_bank_name', true);
$bank_routing_number = get_user_meta($order->user_id, 'wcv_bank_routing_number', true);
$bank_mb = get_user_meta($order->user_id, 'wcv_bank_iban', true);
$bank_pib = get_user_meta($order->user_id, 'wcv_bank_bic_swift', true);

But always has errors and not working code.

$bank_account_name = get_user_meta($order->user_id, 'wcv_bank_account_name', true);
$bank_account_number = het_user_meta($order->user_id, 'wcv_bank_account_number', true);
$bank_name = get_user_meta($order->user_id, 'wcv_bank_name', true);
$bank_routing_number = get_user_meta($order->user_id, 'wcv_bank_routing_number', true);
$bank_mb = get_user_meta($order->user_id, 'wcv_bank_iban', true);
$bank_pib = get_user_meta($order->user_id, 'wcv_bank_bic_swift', true);

I expect the customer to get an email with vendor details for paying him and the vendor to get an email about the purchase of his product and about some details about the customer that want to buy his product.