metaslider_{type}_slider_javascript_before

Use this filter to add javascript before the slider JavaScript call. {type} can be flex, coin, responsive or nivo.


function metaslider_nivo_js($javascript, $slider_id) {
    $javascript .= "alert('Nivo slider is about to be initiated.');";
    return $javascript;
}
add_filter('metaslider_nivo_slider_javascript', 'metaslider_nivo_js', 10, 2);

Posted in: Developer API