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

Add Facebook Video 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/Facebook_Provider.php

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

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

		return $autodetect_sources;
	}

Top ↑

Changelog

Changelog
Version Description
1.8.0 Introduced.