apply_filters( 'get_post_gallery', array $gallery, int|WP_Post $post, array $galleries )

Filters the first-found post gallery.

Parameters

$gallery

(array) The first-found post gallery.

$post

(int|WP_Post) Post ID or object.

$galleries

(array) Associative array of all found post galleries.

Source

File: wp-includes/media.php

View on Trac

Changelog

Version Description
3.6.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_post_gallery