get_post_galleries_images

Advertisement

Summery Summery

Retrieve the image srcs from galleries from a post’s content, if present

Syntax Syntax

get_post_galleries_images( int|WP_Post $post )

Parameters Parameters

$post

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

Return Return

(array) A list of lists, each containing image srcs parsed. from an expanded shortcode

Source Source

File: wp-includes/media.php

		'insertGallery'               => __( 'Insert gallery' ),
		'updateGallery'               => __( 'Update gallery' ),
		'addToGallery'                => __( 'Add to gallery' ),
		'addToGalleryTitle'           => __( 'Add to gallery' ),

Advertisement

Changelog Changelog

Changelog
Version Description
3.6.0 Introduced.

See also See also

Advertisement

Leave a Reply