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

(int|WP_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

This site uses Akismet to reduce spam. Learn how your comment data is processed.