apply_filters ( 'jetpack_default_gallery_type', string $value )

Filter the default gallery type.

Source file: class-jetpack-gallery-settings.php

View in GitHub



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


Since: Jetpack 2.5.1


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: Logo

You are commenting using your 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