get_post_galleries WordPress Filter Hook
The get_post_galleries WordPress hook is used to filter the output of the built-in gallery shortcode. This hook is useful for customizing the gallery shortcode output without having to write a custom shortcode.
apply_filters( 'get_post_galleries', array $galleries , WP_Post $post ) #
Filters the list of all found galleries in the given post.
Parameters
- $galleries
(array)Associative array of all found post galleries.
- $post
(WP_Post)Post object.
Source
File: wp-includes/media.php
Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |