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: - Introduced in WordPress: 3.6.0
- Deprecated in WordPress: —
Description
Retrieves galleries from the passed post's content.