Tribe__Tickets__Editor__Template__Overwrite::setup_template( $post_id )

Set template variables used by the tickets, RSVP and attendees blocks


Parameters

$post_id

(Required)


Top ↑

Source

File: src/Tribe/Editor/Template/Overwrite.php

	public function setup_template( $post_id ) {
		tribe( 'tickets.editor.template' )->add_template_globals( array(
			'post_id' => $post_id,
			'post'    => get_post( $post_id ),
		) );
	}

Top ↑

Changelog

Changelog
Version Description
4.9 Introduced.