apply_filters ( 'jetpack_js_slideshow_settings', array $args )

Filters the slideshow JavaScript spinner.

Source file: modules/shortcodes/slideshow.php

View in GitHub

Parameters

$args

(array) – string – spinner – URL of the spinner image. – string – speed – Speed of the slideshow. Defaults to 4000.


Changelog

Since: Jetpack 2.1.0


Notes

You can use this filter to customize slideshow settings. In the example below, we will change the speed of all slideshows on a site:

function jeherve_fast_slideshow( $args ) {
    $new_speed = array(
        'speed' => '10'
    );
    return array_replace( $args, $new_speed );
}
add_filter( 'jetpack_js_slideshow_settings', 'jeherve_fast_slideshow' );

Have a question about this article?

Comments are currently closed for this article, but rest assured we're still here to help! Send us a message and we'll get back to you.

Contact us