Skip to content
This repository has been archived by the owner on Oct 21, 2019. It is now read-only.

Latest commit

 

History

History
27 lines (14 loc) · 1.08 KB

filter-post-gallery.md

File metadata and controls

27 lines (14 loc) · 1.08 KB

Post Gallery Filter

Covers the following filters:

  • post_gallery

Overview

The post_gallery filter fires when a [gallery] shortcode is rendered. It's a documented way of modifying gallery output.

The Gutenberg Gallery Block does not fire this filter when displaying a gallery.

Existing Usage

From WordPress/gutenberg#5972: The WP Gallery Custom Links plugin adds a "Gallery Link URL" field when editing gallery images so users are able to create galleries which link to external resources.

image

The WP Gallery Custom Links plugin continues to work on the backend with Gutenberg active, but links are ignored on the frontend.


Please open a new issue to suggest additional examples of existing usage.

Gutenberg Equivalent

There are no Gutenberg equivalents for this filter.