Hi @dhoch14
Something like this should work:
add_filter('metaslider_flex_slider_parameters', function($options, $slider_id) {
// if ($slider_id != '123') return $options;
$options['after'] = isset($options['after']) ? $options['after'] : array();
$options['after'] = array_merge($options['after'], array("
if (slider.currentSlide == (slider.count - 1)) {
slider.pause();
}"
));
return $options;
}, 10, 2);
Add it to a mu-plugin file (wp-content/mu-plugins/metaslider.php) or to your functions.php theme file.
If you want to limit it to only a specific slideshow, just add the ID and remove the //
if ($slider_id != '123') return $options;