Tribe__Tickets__RSVP::attendance_totals( int|null $event_id = null )
Returns the RSVP attendance totals object.
Contents
Parameters
- $event_id
-
(int|null) (Optional) The event ID to set for the attendance totals.
Default value: null
Return
(Tribe__Tickets__RSVP__Attendance_Totals) The RSVP attendance totals object.
Source
File: src/Tribe/RSVP.php
public function attendance_totals() {
if ( empty( $this->attendance_totals ) ) {
$this->attendance_totals = new Tribe__Tickets__RSVP__Attendance_Totals;
}
return $this->attendance_totals;
}
Changelog
| Version | Description |
|---|---|
| 5.8.2 | Add the $event_id paramter. |
| 4.2.4 | Introduced. |