Tribe__Events__Pro__Main::oembed_request_post_id_for_recurring_events( int $post_id, string $url )

Convert a /all/ URL to an upcoming post id for oembeds


Parameters

$post_id

(int) (Required) Post ID of the event

$url

(string) (Required) URL of the oembed resource


Top ↑

Return

(int)


Top ↑

Source

File: src/Tribe/Main.php

		public function oembed_request_post_id_for_recurring_events( $post_id, $url ) {
			if ( $post_id ) {
				return $post_id;
			}

			$recurring_event_id = tribe_get_upcoming_recurring_event_id_from_url( $url );
			if ( $recurring_event_id ) {
				return $recurring_event_id;
			}

			// we weren't able to find something better, so return the original value
			return $post_id;
		}

Top ↑

Changelog

Changelog
Version Description
4.2 Introduced.