get_post_gallery_images

Advertisement

Summery Summery

Checks a post’s content for galleries and return the image srcs for the first found gallery

Syntax Syntax

get_post_gallery_images( int|WP_Post $post )

Parameters Parameters

$post

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

Return Return

(string[]) A list of a gallery's image srcs in order.

Source Source

File: wp-includes/media.php

		'skipCropping'                => __( 'Skip cropping' ),
		'cropImage'                   => __( 'Crop image' ),
		'cropYourImage'               => __( 'Crop your image' ),
		'cropping'                    => __( 'Cropping…' ),

Advertisement

Changelog Changelog

Changelog
Version Description
3.6.0 Introduced.

See also See also

Advertisement

Leave a Reply