Support

Home Forums Event Espresso Premium Registrants CSV File

Registrants CSV File

Posted: July 16, 2015 at 2:04 pm


scaldwell

July 16, 2015 at 2:04 pm

Is there ANYWAY we can customize what gets spit out on these? We don’t need 3/4 of what gets exported, and it would save us a lot of time if we can customize it.
Thanks!


Dean

July 17, 2015 at 1:54 am

There isn’t an easy way to do it, but you could modify the /wp-content/plugins/event-espresso/includes/functions/export.php file.

EDIT: the above is for EE3, I didn’t realise you were using EE4 sorry about that.

In EE4 for the registration CSV you could use the FHEE__EE_Export__report_registrations__reg_csv_array filter to remove the appropriate columns (see /wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Export.class.php for more info).

An example:

function abc($reg_csv_array, $reg_row) {
  //var_dump($reg_csv_array);

  unset($reg_csv_array['Event']);
  unset($reg_csv_array['Transaction ID[TXN_ID]']);
  unset($reg_csv_array['Check-Ins']);
  
  return $reg_csv_array;
}
add_filter('FHEE__EE_Export__report_registrations__reg_csv_array', 'abc', 10, 2);

That will remove the Event, Transaction ID and Check Ins columns.

  • This reply was modified 8 years, 9 months ago by  Dean.


Josh

  • Support Staff

July 20, 2015 at 3:23 pm

Hi Shelly,

Here’s a link to another code example that shows a different approach where you specify only the columns you want it to display:

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


scaldwell

July 21, 2015 at 3:35 pm

Thank you Josh! We’ll take a look and see if we can’t get it to work. I appreciate your help on this – as always, you guys ROCK!


Dean

July 22, 2015 at 2:36 am

No problem, let us know if you have any other questions.

The support post ‘Registrants CSV 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.

Event Espresso