Last active
June 16, 2022 02:56
-
-
Save milannankov/63ca8ac264c153fb4174 to your computer and use it in GitHub Desktop.
How to add a filter for FlexSlider with Meta Slider
This file contains hidden or 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
<?php //functions.php | |
add_filter('metaslider_flex_slider_parameters', 'metaslider_flex_params', 10, 3); | |
function metaslider_flex_params($options, $slider_id, $settings) | |
{ | |
$options['after'][] = "onHomePageSlideChanged(slider);"; | |
return $options; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment