Facebook_Provider::add_video_source( $video_sources, WP_Post $post )
Add the Facebook Live Video Source.
Contents
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_eventfunction.
Return
(TribeEventsVirtualMeetingsarray<string|TribeEventsVirtualMeetingsmixed>) An array of video sources.
Source
File: src/Tribe/Meetings/Facebook_Provider.php
public function add_video_source( $video_sources, $post ) {
$video_sources[] = [
'text' => _x( 'Facebook Live', 'The name of the video source.', 'events-virtual' ),
'id' => 'facebook',
'value' => 'facebook',
'selected' => 'facebook' === $post->virtual_video_source,
];
return $video_sources;
}
Changelog
| Version | Description |
|---|---|
| 1.7.0 | Introduced. |