/** * column_ATT_email * @param \EE_Transaction $item * @return string|void */ function column_ATT_email(EE_Transaction $item) { $attendee = $item->primary_registration()->get_first_related('Attendee'); if (!empty($attendee)) { return '<a href="mailto:' . $attendee->get('ATT_email') . '">' . $attendee->get('ATT_email') . '</a>'; } else { return $item->failed() || $item->is_abandoned() ? __('no contact record.', 'event_espresso') : __('No contact record, because the transaction was abandoned or the registration process failed.', 'event_espresso'); } }