Glossary Term
get_post_gallery()
3 tags
1 category
get_post_gallery() — Checks a specified post’s content for gallery and, if present, return the first
Inputs: $post (int|WP_Post): Optional. Post ID or WP_Post object. Default is global $post. $html (bool): Optional. Whether to return HTML or data. Default is true.
Returns string|array: Gallery data and srcs parsed from the expanded shortcode.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
