WPDev.one
Core Function
View Source on Trac ↗

get_post_galleries_images()

get_post_galleries_images( mixed $post = 0 )

Retrieves the image srcs from galleries from a post's content, if present.

Parameters 1 required

Name / Type Description
(int

| WP_Post) $post Optional. Post ID or WP_Post object. Default is global `$post`.

Required

Return Value

(array)
array A list of lists, each containing image srcs parsed. from an expanded shortcode

Function Information

Since Version
3.6.0
Source File
wp-includes/media.php
Advertisement