Tribe__Tickets__Editor__Template__Overwrite::setup_template( $post_id )
Set template variables used by the tickets, RSVP and attendees blocks
Contents
Parameters
- $post_id
-
(Required)
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 ),
) );
}
Changelog
| Version | Description |
|---|---|
| 4.9 | Introduced. |