Use the woocommerce_bookings_csv_import_mapping_default_columns filter to adjust the importer’s automatic CSV header mapping. This is helpful when a source system exports a familiar value under a custom column label. The snippet below maps a header named My Start Column to the internal start field only when that header exists in the uploaded CSV.
add_filter(
'woocommerce_bookings_csv_import_mapping_default_columns',
function ( array $columns, array $raw_headers ): array {
if ( in_array( 'My Start Column', $raw_headers, true ) ) {
$columns['My Start Column'] = 'start';
}
return $columns;
},
10,
2
);