Tribe__Tickets_Plus__Commerce__WooCommerce__Main::checkin( int $attendee_id, bool $qr = false )
Marks an attendee as checked in for an event
Contents
Parameters
- $attendee_id
-
(int) (Required) The ID of the attendee that's being checked in.
- $qr
-
(bool) (Optional) True if from QR checkin process.
Default value: false
Return
(bool)
Source
File: src/Tribe/Commerce/WooCommerce/Main.php
public function checkin( $attendee_id, $qr = false ) {
update_post_meta( $attendee_id, $this->checkin_key, 1 );
if ( func_num_args() > 1 && $qr = func_get_arg( 1 ) ) {
update_post_meta( $attendee_id, '_tribe_qr_status', 1 );
}
/**
* Fires a checkin action
*
* @deprecated 4.7 Use event_tickets_checkin instead
*
* @param int $attendee_id
* @param bool|null $qr
*/
do_action( 'wootickets_checkin', $attendee_id, $qr );
return true;
}