get_post_gallery
get_post_gallery ( $post = 0, $html = true )
Parameters:- (int|WP_Post) post Optional. Post ID or WP_Post object. Default is global $post.
- (bool) html Optional. Whether to return HTML or data. Default is true.
Returns:- (string|array) Gallery data and srcs parsed from the expanded shortcode.
Defined at: - Introduced in WordPress: 3.6.0
- Deprecated in WordPress: —
Description
Checks a specified post's content for gallery and, if present, return the first