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
//* Add WP username to EE registration CSV ---------------------------------------------------------------*/ | |
function ee_add_wp_username_to_csv($reg_csv_array, $reg_row) { | |
//d($reg_row); | |
$reg_csv_array['WP Username'] = ''; | |
$primary_reg = $reg_row[ 'Registration.REG_count' ] == '1' ? true : false; | |
if( $primary_reg ) { | |
$user_id = EE_WPUsers::get_attendee_user($reg_row['Registration.ATT_ID']); | |
//d($user_id); | |
if( $user_id != false ) { |