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

WordPress Trac noreply at wordpress.org
Wed Sep 23 17:22:48 UTC 2015


#33979: Add filter for 'post_gallery_item'
--------------------------------+-----------------------------
 Reporter:  lostmotionassembly  |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Gallery             |    Version:  trunk
 Severity:  normal              |   Keywords:
  Focuses:                      |
--------------------------------+-----------------------------
 This would allow developers to customise the individual gallery items,
 without having to duplicate the entire gallery_shortcode() function to do
 so. This would make it quicker, easier to understand, and reduce the
 likelihood of the gallery shortcode functionality 'drifting' away from
 core. A sample use case would be wanting to add additional classes to the
 gallery item based on attachment meta (such as additional orientation
 options like 'square' or 'panorama').

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


More information about the wp-trac mailing list