use_default_gallery_style WordPress Filter Hook
This hook allows you to change the default gallery style. By default, the gallery style is set to “thumbnails”, but you can change it to any other valid gallery style.
apply_filters( 'use_default_gallery_style', bool $print ) #
Filters whether to print default gallery styles.
Parameters
(bool)Whether to print default gallery styles. Defaults to false if the theme supports HTML5 galleries. Otherwise, defaults to true.
Source
File: wp-includes/media.php
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |