A WordPress-centric search engine for devs and theme authors



get_post_gallery ›

Since3.6.0
Deprecatedn/a
apply_filters( 'get_post_gallery', $gallery, $post, $galleries )
Parameters: (3)
  • (array) $gallery The first-found post gallery.
    Required: Yes
  • (int|WP_Post) $post Post ID or object.
    Required: Yes
  • (array) $galleries Associative array of all found post galleries.
    Required: Yes
Defined at:
Codex:

Filters the first-found post gallery.





Source

return apply_filters( 'get_post_gallery', $gallery, $post, $galleries );