get_post_galleries


get_post_galleries ( $post, $html = true )

Parameters:
  • (int|WP_Post) post Post ID or object.
  • (bool) html Optional. Whether to return HTML or data in the array. Default true.
Returns:
  • (array) A list of arrays, each containing gallery data and srcs parsed from the expanded shortcode.
Defined at:

Description

Retrieves galleries from the passed post's content.

Related Functions

get_post_gallery, get_post_gallery_images, get_post_galleries_images, wp_get_post_categories, get_post_datetime

Top Google Results

User discussions

wpseek mobile