tribe_get_ical_link()

iCal Link

Contents

Returns a sitewide "Export Events" iCal link.


Return

(string) URL for iCal dump.


Top ↑

Source

File: src/functions/template-tags/ical.php

	function tribe_get_ical_link() {
		$output = tribe( 'tec.iCal' )->get_ical_link();

		/**
		 * Filters the "Export Events" iCal link.
		 *
		 * Please note that tribe-events.js dynamically sets the iCal link in most contexts. To
		 * override this behavior so that a custom link from the tribe_get_ical_link filter is the
		 * one that's always used, please also use the tribe_events_force_filtered_ical_link filter.
		 *
		 * @see tribe_events_force_filtered_ical_link
		 * @param string $output The "Export Events" iCal link URL.
		 */
		return apply_filters( 'tribe_get_ical_link', $output );
	}