Skip to content

Actions and Filters—Galleries

Jo Dickson edited this page Jan 17, 2019 · 2 revisions

Navigation

Filter functions


ucfwp_gallery_overrides

Hooks into: post_gallery

Priority: 10

Overrides WordPress's default [gallery] shortcode output with our own, which uses the Athena Framework grid system to arrange thumbnails.

Also adds the ucfwp_gallery_display hook, which allows filtering of the final generated gallery markup (not present in WP core).


ucfwp_gallery_custom_settings

Hooks into: print_media_templates

Priority: 10 (default)

Replaces gallery settings in the media library modal with our own. Provides an interface for setting gallery column sizes per Athena breakpoint.