Tribe__Events__Main::event_archive_link( string $link, string $post_type )

If a themer uses get_post_type_archive_link() to find the event archive URL, this ensures they get the correct result.


Parameters

$link

(string) (Required)

$post_type

(string) (Required)


Top ↑

Return

(string)


Top ↑

Source

File: src/Tribe/Main.php

		public function event_archive_link( $link, $post_type ) {
			return ( self::POSTTYPE === $post_type )
				? tribe_get_events_link()
				: $link;
		}