Tribe__Admin__Notice__Marketing::get_black_friday_start_time()
Unix time for Monday of Thanksgiving week @ 11am UTC. (11am UTC is 6am EST).
Return
(int)
Source
File: src/Tribe/Admin/Notice/Marketing.php
public function get_black_friday_start_time() { $date = Dates::build_date_object( 'fourth Thursday of November ' . date( 'Y' ), 'UTC' ); $date = $date->modify( '-3 days' ); $date = $date->setTime( 11, 0 ); $start_time = $date->format( 'U' ); /** * Allow filtering of the Black Friday sale start date, mainly for testing purposes. * * @since 4.12.14 * * @param int $bf_start_date Unix time for the Monday of Thanksgiving week @ 6am UTC. */ return apply_filters( 'tribe_black_friday_start_time', $start_time ); }
Changelog
Version | Description |
---|---|
4.12.14 | Introduced. |