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.
Source
File: wp-includes/media.php
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |