Tribe__Tickets__Commerce__PayPal__Main::attendance_totals( int|null $event_id = null )
Get the attendance totals instance.
Contents
Parameters
- $event_id
-
(int|null) (Optional) The event ID to get the attendance totals for.
Default value: null
Return
(Tribe__Tickets__Commerce__PayPal__Attendance_Totals) The attendance totals instance.
Source
File: src/Tribe/Commerce/PayPal/Main.php
public function attendance_totals() {
if ( empty( $this->attendance_totals ) ) {
$this->attendance_totals = new Tribe__Tickets__Commerce__PayPal__Attendance_Totals;
}
return $this->attendance_totals;
}
Changelog
| Version | Description |
|---|---|
| 5.8.2 | Added the $event_id parameter. |
| 4.7 | Introduced. |