/** * add related events to single event view * * @return void */ public function register_related_events_view() { if ($this->show_related_events()) { tribe_single_related_events(); } }
/** * Display Related Events * * Display a list of related events to the current post * * @param string $title * @param int $count * @param bool $thumbnails * @param bool $start_date * * @deprecated * @todo remove in 3.11 */ function tribe_related_events($title, $count = 3, $thumbnails = false, $start_date = false, $get_title = true) { _deprecated_function(__FUNCTION__, '3.9', 'tribe_single_related_events'); if (has_filter('tribe_related_events')) { _deprecated_function("The 'tribe_related_events' filter", '3.9', " the 'tribe_after_get_template_part' action for pro/related-events"); return apply_filters('tribe_related_events', tribe_single_related_events()); } else { tribe_single_related_events(); } }