/** * Placed here for compatibility reasons. This can be removed * when Events Calendar 3.2 or greater is released * * @todo Remove this method * * @param int $post_id * * @return string * @see Tribe__Events__Main::get_series_start_date() */ private static function get_series_start_date($post_id) { if (method_exists('Tribe__Events__Main', 'get_series_start_date')) { return Tribe__Events__Main::get_series_start_date($post_id); } $start_dates = tribe_get_recurrence_start_dates($post_id); return reset($start_dates); }
/** * Sorts the meta to ensure we are getting the real start date * @deprecated since 3.4 * * @param int $postId * * @return string * @todo remove - unused */ public static function getRealStartDate($postId) { return Tribe__Events__Main::get_series_start_date($postId); }