Tribe__Events__Pro__Shortcodes__Register::search_shortcodes()

Callback called by tribe_events_ical_before just before the iCal process is started to give us some time to setup other filters so we can change the event list used for the feed if the link is executed in a page with a shortcode of the calendars.

Contents


Source

File: src/Tribe/Shortcodes/Register.php

	public function search_shortcodes() {

		$valid_types = array(
			Tribe__Events__Main::POSTTYPE,
			Tribe__Events__Organizer::POSTTYPE,
			Tribe__Events__Venue::POSTTYPE,
		);

		if ( is_single() && ! is_singular( $valid_types ) ) {
			$this->find_events_in_shortcode();
		} elseif ( is_page() ) {
			$this->find_events_in_shortcode();
		}
	}

Top ↑

Changelog

Changelog
Version Description
4.4.23 Introduced.