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

$print

(bool)Whether to print default gallery styles. Defaults to false if the theme supports HTML5 galleries. Otherwise, defaults to true.


Top ↑

Source

File: wp-includes/media.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by the Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More