Gallery (category)

get_post_galleries()

Gets all galleries from the text of the specified post. Searches for [[gallery]] shortcodes in the text, processes them and returns an array of gallery image data.

get_post_galleries_images()

Gets all image URLs from galleries in the specified post text, if galleries are present in the text.

get_post_gallery()

Gets the first gallery from the text of the specified post. Searches for the [[gallery]] shortcode in the text, processes it and returns an array of gallery image data.

get_post_gallery_images()

Retrieves an array of image URLs that belong to the first gallery of the specified post.