This filter returns the video thumbnail attachment, which is needed when adding a video to a gallery.
add_filter('maxgalleria_video_attachment', 'video_attachment', 10, 6); $attachment
The video thumbnail attachment.
$video_url
The video URL.
$gallery_id
The gallery ID.
$guid
The video thumbnail guid.
$file_type
The video thumbnail file type.
$data
The video data.
add_filter('maxgalleria_video_attachment', 'video_attachment', 10, 6);
function video_attachment($attachment, $video_url, $gallery_id, $guid, $file_type, $data) {
}
Defined in maxgalleria-hooks.php.
Used in video-add.php.