Refine which bookings are fetched

Use the woocommerce_bookings_export_query_args filter to adjust the query arguments passed to WC_Booking_Data_Store::get_booking_ids_by(). This lets a customization narrow or expand the bookings included before the export rows are built. The snippet below limits the export to bookings assigned to one resource ID, which can be adapted for resource-specific reporting.

add_filter(
	'woocommerce_bookings_export_query_args',
	function ( array $args ): array {
		// Only export bookings assigned to a specific resource.
		$args['object_id']   = array( 42 );
		$args['object_type'] = 'resource';

		return $args;
	}
);
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.