[wp-trac] [WordPress Trac] #33979: Add filter for 'post_gallery_item'

WordPress Trac noreply at wordpress.org
Fri Feb 23 16:04:45 UTC 2018


#33979: Add filter for 'post_gallery_item'
--------------------------------+------------------
 Reporter:  lostmotionassembly  |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  5.0
Component:  Gallery             |     Version:  4.4
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:
--------------------------------+------------------

Comment (by desrosj):

 Replying to [comment:6 tristangemus]:
 > Similar?
 https://core.trac.wordpress.org/attachment/ticket/38228/patch_38228.3.diff

 This is similar but a different context. That ticket aims to filter the
 entire generated output of the shortcode whereas this one is being used
 for just a single image within the gallery. Love both of these tickets,
 but we should definitely keep them separate :)

 I would also like to see the ability to modify more than just classes
 using this filter. Adding data attributes to the tag, or changing the
 image size for the current image would be great. That could allow more
 creative gallery layouts, such as the tiled gallery in Jetpack.
 https://jetpackme.files.wordpress.com/2013/11/example-gallery-tiled.jpg

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33979#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list