800,000+ WordPress sites are already using MetaSlider!

Metaslider_{type}_slider_parameters

You can use this filter to modify the JavaScript properties used to initiate MetaSlider slideshows.

MetaSlider exposes most of each slideshows options in the slideshow settings, but there are some specialist options that are offered by each slideshow library that you cannot change through the MetaSlider interface. This filter allows you to change existing properties or add new ones.

For a full list of available properties, visit this documentation article.

Please remember these tips when using the properties.

  • To create/alter an integer property value, omit quotes.
  • To create/alter a string property value, use single or double quotes.
  • To create or add to a function, assign the value to an array (see first example below).

The {type} can be any of the four MetaSlider libraries: flex, coin, responsive or nivo.


Parameters

$options

(array) (required) Slideshow properties

$slider_id

(array) (required) Slideshow ID

$settings

(int) (required) Slideshow settings


Examples

This sample code will alter the Flex Slider properties:

The above code will result in the following output: