Same Issue.
My Code from function.php
add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
function custom_override_checkout_fields( $fields ) {
$fields['billing']['billing_ustid'] = array(
'label' => __('USt-ID Nr.', 'textdomain'),
'placeholder' => _x('USt-ID Nr.', 'placeholder', 'testdomain'),
'required' => false,
'class' => array('form-row-wide'),
'clear' => true
);
return $fields;
}
and
add_filter('woocommerce_email_order_meta_keys', 'my_custom_checkout_field_order_meta_keys');
function my_custom_checkout_field_order_meta_keys( $keys ) {
$keys[] = 'billing_ustid';
return $keys;
}