Tribe__Tickets_Plus__Commerce__Attendance_Totals::get_total_complete()

The total number of tickets sold and paid for, minus cancelled and refunded, for this event.


Return #

(int)


Top ↑

Source #

File: src/Tribe/Commerce/Attendance_Totals.php

	public function get_total_complete() {
		$total_complete = $this->get_total_paid() - $this->get_total_cancelled() - $this->get_total_refunded();

		/**
		 * Returns the total tickets completed for an event.
		 *
		 * @since 4.10.7
		 *
		 * @param int $total_complete          Total number of tickets completed.
		 * @param int $original_total_complete Original total number of tickets completed.
		 * @param int $event_id                Event ID.
		 */
		return (int) apply_filters( 'tribe_tickets_plus_get_total_complete', $total_complete, $total_complete, $this->event_id );
	}

Top ↑

Changelog #

Changelog
Version Description
4.3 Introduced.