metaslider_default_parameters

Description

Use this filter to modify the default slideshow settings. Theme developers may wish to use this to automatically set a ‘recommended’ slideshow size.

Note: this will only apply to the first ever slideshow created in MetaSlider. Subsequent slideshows are given a copy of the settings for the last edited slideshow.

Parameters

$params

(array) (required) Default slideshow settings

Examples

Change Default Slideshow Size

function metaslider_default_slideshow_properties($params) {
        $params['width'] = 960;
        $params['height'] = 300;
	return $params;
}
add_filter('metaslider_default_parameters', 'metaslider_default_parameters', 10, 1);

Posted in: Developer API