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

In this article

Filters the first-found post gallery.

Parameters

$galleryarray
The first-found post gallery.
$postint|WP_Post
Post ID or object.
$galleriesarray
Associative array of all found post galleries.

Source

return apply_filters( 'get_post_gallery', $gallery, $post, $galleries );

Changelog

VersionDescription
3.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.