Posted: November 7, 2016 at 11:21 am
I’ve managed to get a list of registrations for the logged in user from a combination of get_user_meta and the get_all_registrations_for_attendee method.
However, this isn’t exactly what I need. is there a way to get a list of the total check-ins for the user?
Nevermind, I got this sorted out, just going to comment here in case someone is interested in doing the same:
first off, you need to do the following to get the registrations by user id, just substitute prefix with your database/table prefix:
$registrations = EEM_Registration::instance()->get_all_registrations_for_attendee( $att_id );
//now you can loop through those EE_Registrations and setup the data you need.
$html .= ‘<tr class=”my-event”>’;
$html .= ‘<td class=”my-event-checkin”>’ . $registration_check_in .'</td>’;
kudos to Jon Ang for providing most of the code for this on this forum topic.
The support post ‘Check ins for user’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.