Zoom_Provider::add_autodetect_source( $autodetect_sources, string $autodetect_source, WP_Post $post )

Add Zoom to Autodetect Source.


Parameters

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

$autodetect_source

(string) (Required) The ID of the current selected video source.

$post

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


Top ↑

Return

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


Top ↑

Source

File: src/Tribe/Meetings/Zoom_Provider.php

	public function add_autodetect_source( $autodetect_sources, $autodetect_source, $post ) {

		$autodetect_sources[] = [
			'text'     => _x( 'Zoom', 'The name of the autodetect source.', 'events-virtual' ),
			'id'       => Zoom_Meta::$key_zoom_source_id,
			'value'    => Zoom_Meta::$key_zoom_source_id,
			'selected' => Zoom_Meta::$key_zoom_source_id === $autodetect_source,
		];

		return $autodetect_sources;
	}

Top ↑

Changelog

Changelog
Version Description
1.8.0 Introduced.