wpseek.com
WordPress开发者和主题制作者的搜索引擎



get_post_galleries_images › WordPress Function

Since3.6.0
已弃用n/a
get_post_galleries_images ( $post = 0 )
参数:
  • (int|WP_Post) $post Optional. Post ID or WP_Post object. Default is global `$post`.
    Required: No
    默认:
查看:
返回:
  • (array) A list of lists, each containing image srcs parsed. from an expanded shortcode
定义在:
文档:

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



源码

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