Tribe__Tickets__Ticket_Object::get_event_id()
Access the ID of the Event parent of the current Ticket.
Return
(int|null)
Source
File: src/Tribe/Ticket_Object.php
public function get_event_id() {
if ( is_null( $this->event_id ) ) {
$event = $this->get_event();
if ( $event instanceof WP_Post ) {
$this->event_id = $event->ID;
}
}
return $this->event_id;
}
Changelog
| Version | Description |
|---|---|
| 4.7.1 | Introduced. |