magalleria_facebook_before_add_image_to_gallery

Description

This action runs right before an individual Facebook image is added to a gallery.

Usage

add_action('magalleria_facebook_before_add_image_to_gallery', 'facebook_before_add_image_to_gallery', 10, 4);

Parameters

$gallery_id
The gallery ID.

$media_id
The media ID of the Facebook image.

$url
The URL of the Facebook image.

$caption
The caption of the Facebook image.

Example

add_action('magalleria_facebook_before_add_image_to_gallery', 'facebook_before_add_image_to_gallery', 10, 4);

function facebook_before_add_image_to_gallery($gallery_id, $media_id, $url, $caption) {
}

Source Files

Defined in maxgalleria-facebook-hooks.php.

Used in maxgalleria-facebook.php.