@@ 92-104 (lines=13) @@ | ||
89 | ) |
|
90 | ); |
|
91 | $data = array(); |
|
92 | foreach ($export_fields as $field_name => $field_obj) { |
|
93 | if ($field_name === 'STA_ID') { |
|
94 | $value = $attendee->state_name(); |
|
95 | } elseif ($field_name == 'CNT_ISO') { |
|
96 | $value = $attendee->country_name(); |
|
97 | } else { |
|
98 | $value = $attendee->get_pretty($field_name); |
|
99 | } |
|
100 | $data[] = array( |
|
101 | 'name' => $field_obj->get_nicename(), |
|
102 | 'value' => $value, |
|
103 | ); |
|
104 | } |
|
105 | $export_items[] = |
|
106 | array( |
|
107 | 'group_id' => 'att-' . $attendee->ID(), |
@@ 85-95 (lines=11) @@ | ||
82 | foreach ($transactions as $transaction) { |
|
83 | $found_something = true; |
|
84 | $data = array(); |
|
85 | foreach ($export_fields as $field_name => $field_obj) { |
|
86 | if ($field_name === 'TXN_session_data') { |
|
87 | $value = $transaction->get_pretty($field_name, 'print_r'); |
|
88 | } else { |
|
89 | $value = $transaction->get_pretty($field_name); |
|
90 | } |
|
91 | $data[] = array( |
|
92 | 'name' => $field_obj->get_nicename(), |
|
93 | 'value' => $value, |
|
94 | ); |
|
95 | } |
|
96 | $export_items[] = array( |
|
97 | 'group_id' => 'transactions', |
|
98 | 'group_label' => esc_html__('Transactions', 'event_espresso'), |