Tribe__Tickets_Plus__Main::attendance_totals( int $event_id = null )

Returns the attendance totals object.


Parameters

$event_id

(int) (Optional) The event ID to set up the totals for.

Default value: null


Top ↑

Return

(Tribe__Tickets_Plus__Commerce__Attendance_Totals) The attendance totals object.


Top ↑

Source

File: src/Tribe/Main.php

		public function attendance_totals() {
			if ( empty( $this->attendance_totals ) ) {
				$this->attendance_totals = new Tribe__Tickets_Plus__Commerce__Attendance_Totals;
			}

			return $this->attendance_totals;
		}

Top ↑

Changelog

Changelog
Version Description
5.9.2 Added the $event_id parameter.
4.2.4 Introduced.