Filters the first-found post gallery.
$galleryarray$postint|WP_Post$galleriesarraywp-includes/media.php:5473get_post_gallery() * @since 3.6.0 * * @param array $gallery The first-found post gallery. * @param int|WP_Post $post Post ID or object. * @param array $galleries Associative array of all found post galleries. */ return apply_filters( 'get_post_gallery', $gallery, $post, $galleries );} /** * Retrieves the image srcs from galleries from a post's content, if present. * * @since 3.6.0Introduced in 3.6.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.