Core Function
View Source on Trac ↗ get_post_gallery_images()
get_post_gallery_images( mixed $post = 0 ) Checks a post's content for galleries and return the image srcs for the first found gallery.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (int | | WP_Post) $post Optional. Post ID or WP_Post object. Default is global `$post`. Required |
Return Value
(string[])
A list of a gallery's image srcs in order.
Function Information
Since Version
3.6.0
Source File
wp-includes/media.php
Advertisement