-
-
Save Pebblo/59af08753b201dbabd70a8b04217d783 to your computer and use it in GitHub Desktop.
Example of how to change all the values in the CSV report to upper case
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php //Please do not include the opening PHP tag if you already have one. | |
function tw_ee_espresso_reg_report_filter_columns_strtoupper( $csv_row){ | |
foreach($csv_row as $key => $value) { | |
$csv_row[$key] = strtoupper($value); | |
} | |
return $csv_row; | |
} | |
add_filter( 'FHEE__EventEspressoBatchRequest__JobHandlers__RegistrationsReport__reg_csv_array', 'tw_ee_espresso_reg_report_filter_columns_strtoupper', 999, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment