apply_filters ( 'jetpack_default_gallery_type', string $value )

Filter the default gallery type.

Source file: functions.gallery.php

View in GitHub

Parameters

$value

(string) A string of the gallery type. Default is ‘default’.


Changelog

Since: Jetpack 2.5.1


Notes

While Jetpack doesn’t include an option to allow you to change the default Gallery type, you can use the jetpack_default_gallery_type filter to change that on your site, like so:

function jeherve_custom_gallery_type() {
        return 'circle';
}
add_filter( 'jetpack_default_gallery_type', 'jeherve_custom_gallery_type', 30 );

Have a note to contribute?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s