gallery_style WordPress Filter Hook

The gallery_style hook is used to filter the inline CSS used to style the image gallery. This hook is used to add custom CSS to the gallery.

apply_filters( 'gallery_style', string $gallery_style ) #

Filters the default gallery shortcode CSS styles.


Parameters

$gallery_style

(string)Default CSS styles and opening HTML div container for the gallery shortcode output.


Top ↑

Source

File: wp-includes/media.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.5.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