A WordPress-centric search engine for devs and theme authors



post_gallery ›

Since4.2.0
Deprecatedn/a
apply_filters( 'post_gallery', '', $attr, $instance )
Parameters: (3)
  • (string) $output The gallery output. Default empty.
    Required: Yes
  • (array) $attr Attributes of the gallery shortcode.
    Required: Yes
  • (int) $instance Unique numeric ID of this gallery shortcode instance.
    Required: Yes
See:
  • gallery_shortcode()
Defined at:
Codex:

Filters the default gallery shortcode output.

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





Source

$output = apply_filters( 'post_gallery', '', $attr, $instance );