Google_Provider::add_video_source( $video_sources, WP_Post $post )

Add the Google Video Source.


Parameters

(<span class="TribeEventsVirtualMeetingsarrayTribeEventsVirtualMeetingsarray<string|">TribeEventsVirtualMeetingsstring>) (Required) An array of video sources.

$post

(WP_Post) (Required) The current event post object, as decorated by the tribe_get_event function.


Top ↑

Return

(TribeEventsVirtualMeetingsarray<string|TribeEventsVirtualMeetingsmixed>) An array of video sources.


Top ↑

Source

File: src/Tribe/Meetings/Google_Provider.php

	public function add_video_source( $video_sources, $post ) {

		$video_sources[] = [
			'text'     => _x( 'Google Meet', 'The name of the video source.', 'events-virtual' ),
			'id'       => Google_Meta::$key_source_id,
			'value'    => Google_Meta::$key_source_id,
			'selected' => Google_Meta::$key_source_id === $post->virtual_video_source,
		];

		return $video_sources;
	}

Top ↑

Changelog

Changelog
Version Description
1.11.0 Introduced.