Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Last active November 23, 2020 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pebblo/735d17aa2c4b5939bc1aa0c687815bca to your computer and use it in GitHub Desktop.
Save Pebblo/735d17aa2c4b5939bc1aa0c687815bca to your computer and use it in GitHub Desktop.
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
Copy link

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
Copy link
Author

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