Last active
December 29, 2016 16:47
-
-
Save tomhemsley/10973324 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function metaslider_flex_min_items($options, $slider_id, $settings) { | |
$options['minItems'] = 5; // min number of slides that will always be displayed. | |
$options['maxItems'] = 5; // max number of slides that will always be displayed. | |
return $options; | |
} | |
add_filter('metaslider_flex_slider_parameters', 'metaslider_flex_min_items', 11, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment