metaslider_image_{$type}_slider_markup

Description

This filter allows you to modify the complete slide HTML generated by MetaSlider.

{type} can be flex, coin, responsive or nivo.

Parameters

$html

(string) (required) HTML markup for the complete slide

$slide

(array) (required) Slide data

$settings

(array) (required) Slideshow settings

Examples

Append custom HTML to each slide

function metaslider_append_pinit_button($html, $slide, $settings) {
    return $html .= "<div class="pinit">Pin It</div>";
}
add_filter('metaslider_image_coin_slider_markup', 'metaslider_append_pinit_button', 10, 3);

Posted in: Developer API