Summery Summery
Filters the default gallery shortcode output.
Syntax Syntax
Description Description
If the filtered output isn’t empty, it will be used instead of generating the default gallery template.
Parameters Parameters
- $output
-
The gallery output. Default empty.
- $attr
-
Attributes of the gallery shortcode.
- $instance
-
Unique numeric ID of this gallery shortcode instance.
Source Source
File: wp-includes/media.php
Advertisement
Changelog Changelog
Version | Description |
---|---|
4.2.0 | The $instance parameter was added. |
2.5.0 | Introduced. |