Skip to content

Instantly share code, notes, and snippets.

@Pebblo Pebblo/example.php
Created Nov 20, 2017

What would you like to do?
This function sets the Registration CSV report to only export primary registrants.
<?php //Please do not include the opening PHP tag if you already have one
function tw_ee_only_export_primary_registrants($reg_csv_array, $reg_row) {
//Only export the primary registrants
if( $reg_row[ 'Registration.REG_count' ] !== '1' ) {
return null;
return $reg_csv_array;
add_filter( 'FHEE__EE_Export__report_registrations__reg_csv_array', 'tw_ee_only_export_primary_registrants', 100, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.