Google_Provider::add_autodetect_source( $autodetect_sources, string $autodetect_source, WP_Post $post )
Add Google Meet to Autodetect Source.
Contents
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_eventfunction.
Return
(TribeEventsVirtualMeetingsarray<string|TribeEventsVirtualMeetingsstring>) An array of video sources.
Source
File: src/Tribe/Meetings/Google_Provider.php
public function add_autodetect_source( $autodetect_sources, $autodetect_source, $post ) {
$autodetect_sources[] = [
'text' => _x( 'Google Meet', 'The name of the autodetect source.', 'events-virtual' ),
'id' => Google_Meta::$key_source_id,
'value' => Google_Meta::$key_source_id,
'selected' => Google_Meta::$key_source_id === $autodetect_source,
];
return $autodetect_sources;
}
Changelog
| Version | Description |
|---|---|
| 1.11.0 | Introduced. |