wpseek.com
A WordPress-centric search engine for devs and theme authors



get_post_galleries_images › WordPress Function

Since3.6.0
Deprecatedn/a
get_post_galleries_images ( $post = 0 )
Parameters:
  • (int|WP_Post) $post Optional. Post ID or WP_Post object. Default is global `$post`.
    Required: No
    Default:
See:
Returns:
  • (array) A list of lists, each containing image srcs parsed. from an expanded shortcode
Defined at:
Codex:

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



Source

function get_post_galleries_images( $post = 0 ) {
	$galleries = get_post_galleries( $post, false );
	return wp_list_pluck( $galleries, 'src' );
}