I know how to add fields to the CSV, and I need to add some user meta, but I can’t seem to figure out how to get the user id in this context. Also, if I’m adding several, is there a better way than creating multiple hooks? It seems like it will be a drain on resources and it already takes around 5-6 minutes or so for the CSV to generate. Thanks 🙂
You can use one single filter hook to add additional rows to the array, which is the FHEE__EE_Export__report_registrations__reg_csv_array
filter hook.
If you look in Event Espresso’s source, you’ll see that the $reg_row value is passed to the hook, so you should be able to get the user ID from its relationship to the $reg_row[ 'Attendee_CPT.ID' ] value.
The support post ‘Add user meta to 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.
Support forum for Event Espresso 3 and Event Espresso 4.