Uses
Uses | Description |
---|---|
wp-includes/functions.php: wp_list_pluck() | Pluck a certain field out of each object in a list. |
wp-includes/media.php: get_post_galleries() | Retrieves galleries from the passed post’s content. |
Retrieve the image srcs from galleries from a post’s content, if present
(array) A list of lists, each containing image srcs parsed. from an expanded shortcode
File: wp-includes/media.php
function get_post_galleries_images( $post = 0 ) { $galleries = get_post_galleries( $post, false ); return wp_list_pluck( $galleries, 'src' ); }
Version | Description |
---|---|
3.6.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_post_galleries_images