Tribe__Events__iCal::get_ical_link( string $type = 'home' )

Returns the url for the iCal generator for lists of posts.


Parameters #

$type

(string) (Optional) The type of iCal link to return, defaults to 'home'.

Default value: 'home'


Top ↑

Return #

(string)


Top ↑

Source #

File: src/Tribe/iCal.php

	public function get_ical_link( $type = 'home' ) {
		$tec = Tribe__Events__Main::instance();

		return add_query_arg( array( 'ical' => 1 ), $tec->getLink( $type ) );
	}