Tribe__Tickets__Tickets::checkin( int $attendee_id )
Mark an attendee as checked in.
Contents
Parameters
- $attendee_id
-
(int) (Required)
- $qr
-
(Required) true if from QR checkin process
Return
(mixed)
Source
File: src/Tribe/Tickets.php
public function checkin( $attendee_id ) { update_post_meta( $attendee_id, $this->checkin_key, 1 ); $args = func_get_args(); $qr = null; if ( isset( $args[1] ) && $qr = (bool) $args[1] ) { update_post_meta( $attendee_id, '_tribe_qr_status', 1 ); } /** * Fires a checkin action * * @since 4.7 * * @param int $attendee_id * @param bool|null $qr */ do_action( 'event_tickets_checkin', $attendee_id, $qr ); return true; }