Tickets_View::get_post_ticket_attendees( int $event_id, int|null $user_id )

Fetches from the Cached attendees list the ones that are relevant for this user and event

Important to note that this method will bring the attendees from PayPal tickets


Parameters

$event_id

(int) (Required) The Event ID it relates to

$user_id

(int|null) (Required) An Optional User ID


Top ↑

Return

(array) Array with the PayPal tickets attendees


Top ↑

Source

File: src/Tickets/Commerce/Tickets_View.php

	public function get_post_ticket_attendees( $event_id, $user_id ) {
		$module = tribe( Module::class );

		if ( $user_id ) {
			return $module->get_attendees_by_user_id( $user_id, $event_id );
		}

		return $module->get_attendees_by_id( $event_id );
	}

Top ↑

Changelog

Changelog
Version Description
5.1.9 Introduced.