Modify the final column mapping

Use the woocommerce_bookings_csv_import_mapped_columns filter after automatic mapping has finished and the importer has resolved the selected headers. This is the right place to make final mapping adjustments that depend on the raw uploaded headers. The snippet below maps My Custom Column to a custom internal field when that header appears in the CSV.

add_filter(
	'woocommerce_bookings_csv_import_mapped_columns',
	function ( array $headers, array $raw_headers ): array {
		if ( in_array( 'My Custom Column', $raw_headers, true ) ) {
			$headers['My Custom Column'] = 'my_custom_field';
		}

		return $headers;
	},
	10,
	2
);
Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.