Uma área de pesquisa sobre o WordPress para devs e autores do tema



get_post_galleries_images ›

Desde3.6.0
Obsoleton/a
get_post_galleries_images ( $post = 0 )
Parâmetros:
  • (int|WP_Post) $post Optional. Post ID or WP_Post object. Default is global `$post`.
    Required: No
    Padrão:
Ver:
Retorna:
  • (array) A list of lists, each containing image srcs parsed. from an expanded shortcode
Definido em:
Codex:

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



Fonte

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