Title: CSV Export Delimiter &#8211; missing headers
Last modified: August 30, 2016

---

# CSV Export Delimiter – missing headers

 *  Resolved [Cars10](https://wordpress.org/support/users/shonu/)
 * (@shonu)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/csv-export-delimiter-missing-headers/)
 * Hi
 * thanks for introducing the constant for changing the delimiter.
    However, I found
   that the header columns are not crediting the constant, when set. While they 
   still use “,”, the data is using “;” for export.
 * I fixed it hardcoded in EM files and askl you to fix for next release, so I don’t
   need to patch it again:
 *     ```
       $delimiter = !defined('EM_CSV_DELIMITER') ? ',' : EM_CSV_DELIMITER;
           $delimiter = apply_filters('em_csv_delim', $delimiter);
           echo '"'. implode('"'.$delimiter.'"', $EM_Bookings_Table->get_headers(true)). '"' .  "\n";
           //Rows
           $EM_Bookings_Table->limit = 150; //if you're having server memory issues, try messing with this number
           $EM_Bookings = $EM_Bookings_Table->get_bookings();
           $handle = fopen("php://output", "w");
           while(!empty($EM_Bookings->bookings)){
             foreach( $EM_Bookings->bookings as $EM_Booking ) {
               //Display all values
               /* @var $EM_Booking EM_Booking */
               /* @var $EM_Ticket_Booking EM_Ticket_Booking */
               if( $show_tickets ){
                 foreach($EM_Booking->get_tickets_bookings()->tickets_bookings as $EM_Ticket_Booking){
                   $row = $EM_Bookings_Table->get_row_csv($EM_Ticket_Booking);
                   fputcsv($handle, $row, $delimiter);
                 }
               }else{
                 $row = $EM_Bookings_Table->get_row_csv($EM_Booking);
                 fputcsv($handle, $row, $delimiter);
               }
             }
       ```
   
 * You may noticed also a filter was added by me – the alternative approach for 
   me, as I inserted in the export dialoge
    – “export all fields” button – “export
   using THIS delimiter” input field
 * [https://wordpress.org/plugins/events-manager/](https://wordpress.org/plugins/events-manager/)

The topic ‘CSV Export Delimiter – missing headers’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [comma](https://wordpress.org/support/topic-tag/comma/)
 * [csv](https://wordpress.org/support/topic-tag/csv/)
 * [delimiter](https://wordpress.org/support/topic-tag/delimiter/)

 * 0 replies
 * 1 participant
 * Last reply from: [Cars10](https://wordpress.org/support/users/shonu/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/csv-export-delimiter-missing-headers/)
 * Status: resolved