Tribe__Events__Pro__Main::output_recurring_event_canonical_link()
Source
File: src/Tribe/Main.php
public function output_recurring_event_canonical_link() { // set the EventStartDate so Tribe__Events__Main can filter the permalink appropriately $post = get_post( get_queried_object_id() ); $post->EventStartDate = get_query_var( 'eventDate' ); // use get_post_permalink instead of get_permalink so that the post isn't converted // back to an ID, then to a post again (without the EventStartDate) $link = get_post_permalink( $post ); echo "<link rel='canonical' href='" . esc_url( $link ) . "' />\n"; }