Use the woocommerce_bookings_export_statuses filter to control which booking post statuses are included in the export. By default, Bookings includes the statuses that are visible and relevant to admins, customers, and cancellation flows. The snippet below narrows the allowed set to confirmed and paid bookings, while still intersecting with the statuses Bookings made available.
add_filter(
'woocommerce_bookings_export_statuses',
function ( array $statuses ): array {
$allowed_statuses = array_intersect( $statuses, array( 'confirmed', 'paid' ) );
return array_values( $allowed_statuses );
}
);