Support

Home Forums Event Espresso Premium Can I Omit header row from exported CSV?

Can I Omit header row from exported CSV?

Posted: November 14, 2019 at 2:36 pm


vrwaadmin

November 14, 2019 at 2:36 pm

My client is looking to export the csv and import it into an access DB or an XLS and wishes to avoid having to delete the header row from each export.

Is it possible to exclude it somehow?


Josh

  • Support Staff

November 14, 2019 at 4:11 pm

Hi,

It is possible. There’s a filter hook that allows for customizing the CSV. For instance you can add/remove columns, and even remove the headings. Here’s a PHP code snippet that does the latter:

https://gist.github.com/joshfeck/e6bd23fc5362041421efac14ab94ad46

You can add the above to a functions plugin. Then activate the plugin.


vrwaadmin

November 14, 2019 at 5:35 pm

Thanks, Josh! Worked great!

The support post ‘Can I Omit header row from exported CSV?’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso