Filter the default gallery type.
Parameters
- $value
string
A string of the gallery type. Default is ‘default’.
Changelog
- Introduced in Jetpack 2.5.1
How to use this hook
Notes
While Jetpack doesn’t include an option to allow you to change the default Gallery type, you can use thejetpack_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 );