Tribe__Tickets__Editor__Blocks__Tickets::get_is_sale_future( array $tickets )

Get whether no ticket sales have started yet


Parameters

$tickets

(array) (Required) Array of all tickets.


Top ↑

Return

(bool)


Top ↑

Source

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

	public function get_is_sale_future( $tickets ) {
		$is_sale_future = ! empty( $tickets );

		foreach ( $tickets as $ticket ) {
			$is_sale_future = ( $is_sale_future && $ticket->date_is_earlier() );
		}

		return $is_sale_future;
	}

Top ↑

Changelog

Changelog
Version Description
4.11.0 Introduced.