FlexSlider rtl (right to left)
-
I’m trying to pass make a flexslider parameter as documented here
https://www.metaslider.com/docs/properties-for-metaslider-slideshow-libraries/
to a slider using the “Metaslider_{type}_slider_parameters” filter as documented here
https://www.metaslider.com/docs/metaslider_type_slider_parameters/
with the following code, I want to change the slider rtl property, but its not working.
function metaslider_flex_params($options, $slider_id, $settings) {
if ($slider_id == 658) { // check for slider ID (optional)
$options['rtl'] = 'true';
}
return $options;
}
add_filter('metaslider_flex_slider_parameters', 'metaslider_flex_params', 10, 3);Any suggestions?
- You must be logged in to reply to this topic.