01/25/2019 at 9:27 am
#482628
Keymaster
@ Margo
You could use this dev doc to register those fields with Connections so they can be exported:
https://connections-pro.com/quicktip-custom-field-adding-a-text-field/#Export_the_Field
Something like this should work:
// Register the custom test field CSV Export attributes and processing callback.
add_filter( 'cn_csv_export_fields', 'cn_register_text_field_header' );
add_filter( 'cn_csv_export_fields_config', 'cn_register_text_field_config' );
function cn_register_text_field_header( $fields ) {
// The field_id should match exactly the field id used when registering the custom field.
$fields['Branch Logo'] = 'Branch Logo';
$fields['Marker Location'] = 'Marker Location';
return $fields;
}
function cn_register_text_field_config( $fields ) {
$fields[] = array(
'field' => 'Branch Logo', // The field_id should match exactly the field id used when registering the custom field.
'type' => 5,
'fields' => '',
'table' => CN_ENTRY_TABLE_META,
'types' => NULL,
);
$fields[] = array(
'field' => 'Marker Location', // The field_id should match exactly the field id used when registering the custom field.
'type' => 5,
'fields' => '',
'table' => CN_ENTRY_TABLE_META,
'types' => NULL,
);
return $fields;
}
Hope this helps!