Module::front_end_tickets_form( $content )

Shows the tickets form in the front end


Parameters

$content

(Required)


Top ↑

Return

(void)


Top ↑

Source

File: src/Tickets/Commerce/Module.php

	public function front_end_tickets_form( $content ) {

		$post    = $GLOBALS['post'];
		$tickets = $this->get_tickets( $post->ID );

		foreach ( $tickets as $index => $ticket ) {
			if ( __CLASS__ !== $ticket->provider_class ) {
				unset( $tickets[ $index ] );
			}
		}

		if ( empty( $tickets ) ) {
			return;
		}

		tribe( Tickets_View::class )->get_tickets_block( $post->ID );
	}

Top ↑

Changelog

Changelog
Version Description
5.1.9 Introduced.