Hello,
Yes, we do have a filter using which you can add the custom fields created with a third-party plugin by using the meta keys for those fields.
You can refer to this example function that adds the VAT field, you can modify this function based on the field title and the field meta key that you want to fetch, you can add this function in either the functions.php file of your child theme or add it as a snippet using the Code Snippets plugin.
/**
* An example that adds a 'VAT' field to the end of the list.
*/
function example_custom_order_fields( $fields, $order ) {
$new_fields = array();
if( get_post_meta( $order->id, 'your_meta_field_name', true ) ) {
$new_fields['your_meta_field_name'] = array(
'label' => 'VAT',
'value' => get_post_meta( $order->id, 'your_meta_field_name', true )
);
}
return array_merge( $fields, $new_fields );
}
add_filter( 'wcdn_order_info_fields', 'example_custom_order_fields', 10, 2 );
Kind Regards,
Upendra.