Tribe__Tickets__Editor__Blocks__Tickets::get_tickets_on_sale( array $tickets )

Get all tickets on sale


Parameters

$tickets

(array) (Required) Array of all tickets.


Top ↑

Return

(array)


Top ↑

Source

File: src/Tribe/Editor/Blocks/Tickets.php

	public function get_tickets_on_sale( $tickets ) {
		$tickets_on_sale = array();

		foreach ( $tickets as $ticket ) {
			if ( tribe_events_ticket_is_on_sale( $ticket ) ) {
				$tickets_on_sale[] = $ticket;
			}
		}

		return $tickets_on_sale;
	}

Top ↑

Changelog

Changelog
Version Description
4.9 Introduced.