maxgalleria_video_attachment

Description

This filter returns the video thumbnail attachment, which is needed when adding a video to a gallery.

Usage

add_filter('maxgalleria_video_attachment', 'video_attachment', 10, 6);

Parameters

$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.

Example

add_filter('maxgalleria_video_attachment', 'video_attachment', 10, 6);

function video_attachment($attachment, $video_url, $gallery_id, $guid, $file_type, $data) {
}

Source Files

Defined in maxgalleria-hooks.php.

Used in video-add.php.