get_post_gallery_images
get_post_gallery_images ( $post = 0 )
Parameters:- (int|WP_Post) post Optional. Post ID or WP_Post object. Default is global `$post`.
See:Returns:- (string[]) A list of a gallery's image srcs in order.
Defined at: - Introduced in WordPress: 3.6.0
- Deprecated in WordPress: —
Description
Checks a post's content for galleries and return the image srcs for the first found gallery.