Ticket::get_template()

Gets the template instance used to setup the rendering html.

Contents


Return

(Tribe__Template)


Top ↑

Source

File: src/Tickets/Commerce/Ticket.php

	public function get_template() {
		if ( empty( $this->template ) ) {
			$this->template = new \Tribe__Template();
			$this->template->set_template_origin( \Tribe__Tickets__Main::instance() );
			$this->template->set_template_folder( 'src/views/v2/commerce/ticket' );
			$this->template->set_template_context_extract( true );
			$this->template->set_template_folder_lookup( true );
		}

		return $this->template;
	}