Tribe__Tickets__RSVP::attendance_totals( int|null $event_id = null )

Returns the RSVP attendance totals object.


Parameters

$event_id

(int|null) (Optional) The event ID to set for the attendance totals.

Default value: null


Top ↑

Return

(Tribe__Tickets__RSVP__Attendance_Totals) The RSVP attendance totals object.


Top ↑

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;
	}

Top ↑

Changelog

Changelog
Version Description
5.8.2 Add the $event_id paramter.
4.2.4 Introduced.