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.


Top ↑

Source

File: wp-includes/media.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More