Tribe__Tickets_Plus__Main::attendance_totals( int $event_id = null )
Returns the attendance totals object.
Contents
Parameters
- $event_id
-
(int) (Optional) The event ID to set up the totals for.
Default value: null
Return
(Tribe__Tickets_Plus__Commerce__Attendance_Totals) The attendance totals object.
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;
}
Changelog
| Version | Description |
|---|---|
| 5.9.2 | Added the $event_id parameter. |
| 4.2.4 | Introduced. |