On this page
apply_filters( 'get_post_gallery', array $gallery, int|WP_Post $post, array $galleries )
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
File: wp-includes/media.php. View all references
return apply_filters( 'get_post_gallery', $gallery, $post, $galleries );
Related
Used By
| Used By | Description |
|---|---|
| get_post_gallery() wp-includes/media.php | Checks a specified post’s content for gallery and, if present, return the first |
Changelog
| Version | Description |
|---|---|
| 3.6.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_post_gallery