Tribe__Tickets__Tickets::checkin( int $attendee_id, bool|null $qr = null, int|null $event_id = null )

Mark an Attendee as checked in.


Parameters

$attendee_id

(int) (Required) The ID of the attendee that's being checked in.

$qr

(bool|null) (Optional) Whether the check-in comes from a QR code scan or not.

Default value: null

$event_id

(int|null) (Optional) The ID of the ticket-able post the Attendee is being checked into.

Default value: null


Top ↑

Return

(bool) Whether the Attendee was checked in or not.


Top ↑

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;
		}

Top ↑

Changelog

Changelog
Version Description
5.8.2 Add the tec_tickets_attendee_checkin filter to override the checkin process. Update the method signature to include the $qr and $eveent_id parameters.
3.1.2 Introduced.