tribe_get_events_link( string $context = 'href' )

Link to All Events

Returns a link to the events URL


Parameters

$context

(string) (Optional) defaults to 'href'. Can be 'display', in which case non-latin chars are not url-encoded.

Default value: 'href'


Top ↑

Return

(string) URL


Top ↑

Source

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

	function tribe_get_events_link( $context = 'href' ) {
		$plugin = Tribe__Events__Main::instance();
		/**
		 * Allows for filtering the main events link.
		 *
		 * Returns a link to the events URL
		 *
		 * @param string $link The main events link.
		 * @param string $context Defaults to 'href'. Can also be 'display', in which case non-latin chars are not url-encoded.
		 */
		return apply_filters( 'tribe_get_events_link', $plugin->getLink( 'home' ), $context );
	}