Tribe__Events__Pro__Main::get_all_dir_link( string $link )

When showing All events for a recurring event, override the default directional link to view “all” rather than “list”


Parameters

$link

(string) (Required) Current page link


Top ↑

Return

(string) Recurrence compatible current page link


Top ↑

Source

File: src/Tribe/Main.php

		public function get_all_dir_link( $link ) {
			if ( ! tribe_is_showing_all() && ! isset( $_POST['tribe_post_parent'] ) ) {
				return $link;
			}

			$link = preg_replace( '#tribe_event_display=list#', 'tribe_event_display=all', $link );

			return $link;
		}