WordPress at a glance
filter is not described

post_gallery filter-hook . WP 2.5.0

Filters the default gallery shortcode output.

If the filtered output isn't empty, it will be used instead of generating the default gallery template.


add_filter( 'post_gallery', 'filter_function_name_7825', 10, 3 );
function filter_function_name_7825( $output, $attr, $instance ){
	// filter...

	return $output;
The gallery output.
Default: ''
Attributes of the gallery shortcode.
Unique numeric ID of this gallery shortcode instance.

Список изменений

С версии 2.5.0 Введена.
С версии 4.2.0 The $instance parameter was added.

Где вызывается хук

wp-includes/media.php 2189
$output = apply_filters( 'post_gallery', '', $attr, $instance );

Где используется хук в ядре WP

Использование не найдено.