dozent_video_sources( null $source = null )
Video Sources Supported by Dozent
Description
See also
Parameters
- $source
-
(null) (Optional)
Default value: null
Return
(array|bool|mixed|void)
Source
File: includes/core-functions.php
function dozent_video_sources( $source = null ) { $sources = apply_filters( 'dozent_video_sources', [ 'html5' => __( 'HTML5 (.mp4)', 'dozent' ), 'external_url' => __( 'External URL', 'dozent' ), 'youtube' => __( 'YouTube', 'dozent' ), 'vimeo' => __( 'Vimeo', 'dozent' ), 'embedded' => __( 'Embedded', 'dozent' ), ] ); if ( $source ) { return dozent_array_get( $source, $sources ); } return $sources; }
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |