Support

Home Forums Event Espresso Premium Custom Attendee Exports with EE4

Custom Attendee Exports with EE4

Posted: September 6, 2016 at 10:26 am

Viewing 7 reply threads


scaldwell

September 6, 2016 at 10:26 am

I found this article and am wondering if these are the same instruction for EE4. I am not sure where to locate the includes directory in EE4. https://eventespresso.com/topic/custom-excel-export/

Thank you,
Shelly


Tony

  • Support Staff

September 6, 2016 at 10:59 am

Hi Shelly,

That thread is for EE3 so it doesn’t apply.

What details are you looking to add to the CSV?


scaldwell

September 6, 2016 at 11:10 am

Hi Tony – I’m actually looking to make our exports much much shorter. Its not that I want to add anything – I want to remove a bunch of the columns that get exported currently. We only need about 5 of those darn columns :-).
Any advice will be welcome.
Shelly


Tony

  • Support Staff

September 7, 2016 at 2:17 am

You don’t need to modify code to do that as we have a couple of functions you can use to filter the output ๐Ÿ™‚

There’s this one – https://github.com/eventespresso/ee-code-snippet-library/blob/master/admin/registration_report_limit_columns_shown.php

Where you set the columns you want to include in the output, only those columns are then output to the CSV.

And this – https://github.com/eventespresso/ee-code-snippet-library/blob/master/admin/tw_registration_report_exclude_fields.php

Where you can set the columns to exclude from the output, all others will be included.

The column names are shown on the top of the CSV, we wrap them all in the __() to allow for translations but you don’t need to if your not translating EE.


scaldwell

September 7, 2016 at 12:56 pm

Great!
Where do I stick this code however?
Thanks,
Shelly


Tony

  • Support Staff

September 7, 2016 at 1:10 pm

Ah, sorry I should have included that above.

You can use your child themes functions.php file or a Custom Functions Plugin (preferred).


scaldwell

September 7, 2016 at 1:21 pm

Oh thank you Tony!!!


Tony

  • Support Staff

September 7, 2016 at 1:44 pm

You’re most welcome, Shelly ๐Ÿ™‚

Any problems please let us know.

Viewing 7 reply threads

The support post ‘Custom Attendee Exports with EE4’ 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