Support

Home Forums Event Espresso Premium Sorting by custom column in Event's registration table Reply To: Sorting by custom column in Event's registration table

Reply To: Sorting by custom column in Event's registration table

Author Replies
bhesketh # Posted on May 4, 2018 at 2:31 pm

Hi

This topic is to continue the older topic

https://eventespresso.com/topic/sorting-by-custom-column-in-events-registration-table/

For a custom column I use unique registration code. It’s a 3 digits random number.

add_filter(‘FHEE_manage_event-espresso_page_espresso_registrations_sortable_columns’, ‘tw_ee_sortable_columns’, 10, 2);

function tw_ee_sortable_columns( $sortable_columns, $screen ) {
if ( $screen == ‘espresso_registrations_default’ ) {
$sortable_columns[‘lottery_number’] = array(‘lottery_number’ => TRUE);
}
return $sortable_columns;
}

Do NOT follow this link or you will be banned from the site!