get_post_galleries_images( int|WP_Post $post )
Retrieve the image srcs from galleries from a post’s content, if present
Description Description
See also See also
Parameters Parameters
Return Return
(array) A list of lists, each containing image srcs parsed. from an expanded shortcode
Source Source
File: wp-includes/media.php
function get_post_galleries_images( $post = 0 ) { $galleries = get_post_galleries( $post, false ); return wp_list_pluck( $galleries, 'src' ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
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.
Expand full source codeCollapse full source code