Sure! In that case I came up with a rough example that you should be able to tweak to what you need. You’ll need to add some styling and a table heading but I’ll give you code that will show all of the data in a table.
1) Open up the file class-rtec-db.php in the inc folder.
2) Find the get_registrants_data() method and change the line:
$retrieve_fields = array( 'first_name', 'last_name' );
to
$retrieve_fields = array( 'first_name', 'last_name', 'email', 'phone', 'other', 'custom' );
Note that you can remove fields that you don’t want to use.
3) Open up the form-functions.php file in the inc/form folder.
4) Change the block of code starting on line 32 to this:
if ( $event_meta['show_registrants_data'] && ! $doing_shortcode ) {
$registrants_data = $db->get_registrants_data( $event_meta );
global $rtec_options;
$title = isset( $rtec_options['attendee_list_title'] ) ? $rtec_options['attendee_list_title'] : __( 'Currently Registered', 'registrations-for-the-events-calendar-pro' );
$title = rtec_get_text( $title, __( 'Currently Registered', 'registrations-for-the-events-calendar-pro' ) );
$return_html = '<div class="tribe-events-event-meta rtec-event-meta"><h3 class="rtec-section-title">' . esc_html( $title ) . '</h3>';
$return_html .= '<table>';
foreach ( $registrants_data as $registration ) {
$return_html .= '<tr>';
foreach ($registration as $key => $value ) {
if ( $key === 'custom' ) {
$custom_data = maybe_unserialize( $value );
if ( is_array( $custom_data ) ) {
foreach ( $custom_data as $custom_key => $custom_value ) {
$return_html .= '<td>' . esc_html( $custom_value ) . '</td>';
}
}
} else {
$return_html .= '<td>' . esc_html( $value ) . '</td>';
}
}
$return_html .= '</tr>';
}
$return_html .= '</table>';
$return_html .= '</div>';
}
Like I said it will be rough but should get you started! I’ll have to look into making this easier in a future update.