Tribe__Tickets__Ticket_Object::start_date( bool $as_timestamp = true )
Get the ticket’s start date
Contents
Parameters
- $as_timestamp
-
(bool) (Optional) Flag to disable the default behavior and use DateTime object instead.
Default value: true
Return
(string)
Source
File: src/Tribe/Ticket_Object.php
public function start_date( $as_timestamp = true ) {
$start_date = null;
if ( ! empty( $this->start_date ) ) {
$start_date = $this->start_date;
if ( ! empty( $this->start_time ) ) {
$start_date .= ' ' . $this->start_time;
}
$start_date = $this->get_date( $start_date, $as_timestamp );
}
return $start_date;
}
Changelog
| Version | Description |
|---|---|
| 4.2 | Introduced. |