Skip to content

Instantly share code, notes, and snippets.

@Pebblo

Pebblo/functions.php

Last active Nov 23, 2020
Embed
What would you like to do?
This function includes the REG_url_link within CSV export.
<?php //Please do not include the opening PHP tag if you already have one.
function ee_tw_add_reg_url_link_to_csv( $reg_csv_array, $reg_row ) {
$reg_csv_array[ 'Registraion URL link[REG_url_link]' ] = $reg_row[ 'Registration.REG_url_link' ];
return $reg_csv_array;
}
add_filter( 'FHEE__EventEspressoBatchRequest__JobHandlers__RegistrationsReport__reg_csv_array', 'ee_tw_add_reg_url_link_to_csv', 10, 2 );
@davidknoerr

This comment has been minimized.

Copy link

@davidknoerr davidknoerr commented Jan 17, 2017

Hi Pebblo,

I created the custom functions php file, uploaded it to a new plugin folder, but I'm not sure how to do thjs "This function include the REG_url_link within CSV export."

What is the REG_url_link? and what would it look like?

thanks!!

Dave

@Pebblo

This comment has been minimized.

Copy link
Owner Author

@Pebblo Pebblo commented Mar 10, 2017

Hi Dave,

Apologies, I missed this comment.

The REG_url_link is a unique value for each registration, that value is not included within the CSV output from Event Espresso by default, the above function includes it for people who want to use it.

This may come across wrong, but if you don't know what the REG_url_link is, or what it looks like then I'm not sure why you are using the above function as you probably don't need it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment