function custom_reservation_column($column, $post_id)
{
    $r = AC::load_reservation_meta($post_id);
    //$a = AC::load_activity_meta($r->activity);
    switch ($column) {
        case 'activity':
            echo AC::get_activity_backend_title($r->activity);
            break;
        case 'seats':
            echo $r->registrant_count;
            break;
        case 'id':
            echo $r->ID;
            break;
        case 'charges':
            echo '$' . number_format($r->total, 2);
            break;
        case 'email':
            echo '<a href="mailto:' . $r->registrant_group[0]['email'] . '">' . $r->registrant_group[0]['email'] . '</a>';
            break;
        case 'phone':
            echo $r->formatted_billing_phone;
            break;
        case 'timestamp':
            echo $r->formatted_created;
            break;
    }
}
 public static function send_admin_reservation_email($r_id)
 {
     global $a;
     global $r;
     $r = AC::load_reservation_meta($r_id);
     $subject = 'New Reservation: ' . $r->registrant_group[0]['first_name'] . ' ' . $r->registrant_group[0]['last_name'] . ' (' . $r->registrant_count . ') ' . $a->title;
     $values = array('Activity' => $a->title, 'Activity Date' => $a->formatted_date, 'Activity ID' => $a->ID, 'Name' => $r->registrant_group[0]['first_name'] . ' ' . $r->registrant_group[0]['last_name'], 'Count' => $r->registrant_count, 'Email' => $r->registrant_group[0]['email'], 'Phone' => $r->billing_phone, 'Opt-In' => $r->optin, 'Total Paid' => '$' . number_format($r->total, 2), 'Activity Fee' => '$' . number_format($r->fee, 2), 'Gratuity' => '$' . number_format($r->gratuity, 2), 'Donation' => '$' . number_format($r->donation, 2), 'Tax' => '$' . number_format($r->tax, 2), 'Addons' => $r->addons, 'Reservation ID' => $r->ID, 'Registration Date' => $r->created, 'Billing Zip' => $r->billing_zip, 'Auth Code' => $r->auth_code, 'Transaction ID' => $r->transaction_id, 'Card Type' => $r->card_type, 'Last 4' => $r->last4, 'Transaction Link' => '<a href="' . ACTIVITY_CENTER_TRANSACTION_URL . '/console/details.php?transid=' . $r->transaction_id . '">' . ACTIVITY_CENTER_TRANSACTION_URL . '/console/details.php?transid=' . $r->transaction_id . '</a>');
     $body = '';
     foreach ($values as $k => $v) {
         $body .= '<strong>' . $k . ':</strong> ' . $v . '<br />';
     }
     $mail = new PHPMailer();
     $mail->setFrom('*****@*****.**');
     $mail->addReplyTo('*****@*****.**');
     $mail->addAddress($a->service_email);
     foreach (activity_stock_get_option('admin_emails') as $address) {
         $mail->addCC($address);
     }
     $mail->Subject = $subject;
     $mail->msgHTML($body);
     $mail->Send();
 }
				<th>ID</th>
				<th>Name</th>
				<th>Phone</th>
				<th>Email</th>
				<th>Activity</th>
				<th>Date</th>
				<th>Paid</th>
			</tr>
		</thead>
		<tbody>
		<?php 
while ($query->have_posts()) {
    ?>
			<?php 
    $query->the_post();
    $r = AC::load_reservation_meta(get_the_ID());
    ?>
				<?php 
    foreach ($r->registrant_group as $k => $v) {
        ?>
					<?php 
        if ($k > 0) {
            ?>
						<tr>
							<td><?php 
            echo $r->ID;
            ?>
</td>
							<td><?php 
            echo $r->registrant_group[$k]['first_name'] . ' ' . $r->registrant_group[$k]['last_name'];
            ?>