wpseek.com
A WordPress-centric search engine for devs and theme authors



gallery_style › WordPress Filter Hooks

Since7.0.0
Deprecatedn/a
apply_filters( 'gallery_style', $gallery_style . $gallery_div )
Parameters:
  • () gallery_style Default CSS styles and opening HTML div container for the gallery shortcode output.
    Required: Yes
Defined at:
Codex:

Filters the gallery shortcode's default CSS styles and opening HTML div container.

To remove the CSS entirely, use the `use_default_gallery_style` filter instead: add_filter( 'use_default_gallery_style', '__return_false' );




Source

$output = apply_filters( 'gallery_style', $gallery_style . $gallery_div );