Posted: May 7, 2018 at 9:16 am
|
Hi, I use EE3 and we export the attendee’s always before an event. But there are many fields in this file that are not needed. But there are also some fields where we’ve some questions about. We don’t understand where some fields are coming from and we want to add some extra fields to the export. We also use WP members extension where we can add extra questions etc. But the logic is somewhere, where we can’t find it… |
Hi Jordy, You’ll find the logic in the includes/functions/export.php file. Within that file there’s a pluggable function named espresso_export_stuff(), and that’s the function that executes when you do an attendee export. Since it’s a pluggable function, you can copy the entirety of the function into your own plugin, make modifications, and your copy will be used instead of the original. |
|
|
Where do i need to place this export.php to make modifications so the original stays original? |
|
But as you can see in the export screenshot at link: https://www.rszmotorsport.nl/screeen.png there are many not standard fields, i wonder where are the coming from and how can i delete or add certain information to this export? In the export.php file is no such information or code about this. |
You don’t place export.php anywhere, you copy the So start by making the custom functions plugin: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ Then in export.php copy lines 230 to 594 (assuming you are using the latest version), place that code in your custom functions plugin. Now you have a copy of the function that exports the details from EE3, EE will use that version in place of the original function.
Not standard fields? What are standard fields? The screenshots show the EE attendee csv, thats the ‘standard’ export for that code.
We’ll need more specific details to be able to help, which fields do you want to remove? What details do you want to add? |
|
|
Hi Tony, Can you please email me at info@freshymedia.nl? Then i can explain you a bit more. |
Done. |
|
The support post ‘EE3 export attendee's to CSV how to change the fields in this exported file?’ 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.