Support

Home Forums Event Espresso Premium Edit CSV Attendees Export in core.

Edit CSV Attendees Export in core.

Posted: July 9, 2015 at 8:55 am


Marcus

July 9, 2015 at 8:55 am

I am aware from my forum research that editing the columns outputted by the CSV attendees export is not possible.

I have however seen it can be done by editing the core but there was only reference to where to do this in EE3 and I need to know in 4.

I am comfortable doing this in PHP as I assume it will be a case of commenting out the fields I do not want in the CSV, ..so if you could direct me to the correct file to play with I would be most grateful.

Unless there is a better solution.

Thanks


Josh

  • Support Staff

July 9, 2015 at 10:03 am

Hi Andrew,

A better solution is you can open up a pull request over on the Event Espresso core github project and with some new filter hooks to allow for replacing the core plugin’s export methods with your own. This way you can copy the methods from the EE_Export class into your own plugin, and the hooks will allow you to call in your custom methods instead.


Marcus

July 10, 2015 at 1:53 am

Might be a bit out of my skill level and time constraints, ..I was just hoping to comment out all the fields except those I want, …is there nowhere to do this (I am aware I might have to redo this each time I update).


Lorenzo Orlando Caum

  • Support Staff

July 10, 2015 at 10:02 am

Hi there Andrew, here is an example that will retrieve first name, last name, email, and a custom question called radio:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/admin/registration_report_limit_columns_shown.php

If you wanted to retrieve first name, last name, email, and a custom question called “Favorite color” — then you would change ‘radio’ to ‘Favorite color’ in the sample code.

It can be added to a child theme’s functions.php file or a site specific plugin (https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/).

Thanks


Lorenzo

The support post ‘Edit CSV Attendees Export in core.’ 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