Attendance_Totals::get_total_sold()

The total number of tickets sold for this event.


Return

(int)


Top ↑

Source

File: src/Tickets/Commerce/Reports/Attendance_Totals.php

	public function get_total_sold() {
		$total_sold = $this->get_total_paid() + $this->get_total_pending();

		/**
		 * Returns the total tickets sold for an event.
		 *
		 * @since 4.7
		 *
		 * @param int $total_sold          Total number of tickets sold.
		 * @param int $original_total_sold Original total number of tickets sold.
		 * @param int $event_id            Event ID.
		 */
		return (int) apply_filters( 'tribe_tickets_get_total_sold', $total_sold, $total_sold, $this->event_id );
	}

Top ↑

Changelog

Changelog
Version Description
4.7 Introduced.