Retrieves the image srcs from galleries from a post’s content, if present.
Description
See also
Parameters
Source
* @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`.
* @return array A list of lists, each containing image srcs parsed.
* from an expanded shortcode
*/
Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |
A simple example of how to append the raw image URLs to the content of any post or page that has at least one gallery.