AS Bruno mentioned this causes an error in WP. However removing the code
if( get_post_meta( $order->id, ‘your_meta_field_name’, true ) ) {
$new_fields[‘your_meta_field_name’] = array(
‘label’ => ‘Customer Number’,
‘value’ => get_post_meta( $order->id, ‘your_meta_field_name’, true )
);
}
and removing } removed the error.
How would this example work for my needs to pull in igfw_invoice_number field from the other plugin as discussed? Thank you for the help!