Date_Based::get_end_time()
Unix time for notice end.
Return
(int) $end_time The date & time the notice should stop displaying, or shift to the extension datetime as a Unix timestamp.
Source
File: src/Tribe/Admin/Notice/Date_Based.php
public function get_end_time() { $date = Dates::build_date_object( $this->end_date, 'UTC' ); $date = $date->setTime( $this->end_time, 0 ); /** * Allow filtering of the end date DateTime object, * to allow for things like "the day after" ( $date->modify( '+1 day' ) ) and such. * * @since 4.14.2 * * @param \DateTime $date Date object for the notice end. */ $date = apply_filters( "tribe_{$this->slug}_notice_end_date", $date, $this ); return $date; }
Changelog
Version | Description |
---|---|
4.14.2 | Introduced. |