Description
This filter returns the video embed code.
Usage
add_filter('maxgalleria_video_embed_code', 'video_embed_code', 10, 6);
Parameters
$embed_code
The video embed code.
$video_url
The video URL.
$enable_related_videos
Boolean indicating whether or not to enable related videos (YouTube videos only).
$enable_hd_playback
Boolean indicating whether or not to enable HD playback (YouTube videos only).
$video_width
The video width (default = 768).
$video_height
The video height (default = 432).
Example
add_filter('maxgalleria_video_embed_code', 'video_embed_code', 10, 6);
function video_embed_code($embed_code, $video_url, $enable_related_videos, $enable_hd_playback, $video_width, $video_height) {
}
Source Files
Defined in maxgalleria-hooks.php.
Used in meta-videos.php, video-tiles.php.