wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



get_post_galleries_images › WordPress Function

Da3.6.0
Deprecaton/a
get_post_galleries_images ( $post = 0 )
Parametri:
  • (int|WP_Post) $post Optional. Post ID or WP_Post object. Default is global `$post`.
    Richiesto: No
    Default:
Vedi:
Ritorna:
  • (array) A list of lists, each containing image srcs parsed. from an expanded shortcode
Definito a:
Codex:

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



Sorgenti

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