Tribe__Tickets__Editor__Template__Overwrite::should_inject_tickets_in_events( $post_id )
Check if an event should be injected with the template variables
Contents
Parameters
- $post_id
-
(Required)
Return
(bool)
Source
File: src/Tribe/Editor/Template/Overwrite.php
public function should_inject_tickets_in_events( $post_id ) {
if ( empty( $post_id ) || is_admin() ) {
return false;
}
return $this->has_tickets_support( $post_id );
}
Changelog
| Version | Description |
|---|---|
| 4.9 | Introduced. |