Tribe__Tickets__Ticket_Object::end_date( bool $as_timestamp = true )
Get the ticket’s end 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 end_date( $as_timestamp = true ) {
$end_date = null;
if ( ! empty( $this->end_date ) ) {
$end_date = $this->end_date;
if ( ! empty( $this->end_time ) ) {
$end_date .= ' ' . $this->end_time;
}
$end_date = $this->get_date( $end_date, $as_timestamp );
}
return $end_date;
}
Changelog
| Version | Description |
|---|---|
| 4.2 | Introduced. |