Tribe__Tickets__Editor__Blocks__Rsvp::get_active_tickets( $tickets )

Method to get the active RSVP tickets


Return

(array)


Top ↑

Source

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

	public function get_active_tickets( $tickets ) {
		$active_tickets = array();

		foreach ( $tickets as $ticket ) {
			// continue if it's not in date range
			if ( ! $ticket->date_in_range() ) {
				continue;
			}

			$active_tickets[] = $ticket;
		}

		return $active_tickets;
	}

Top ↑

Changelog

Changelog
Version Description
4.9 Introduced.