Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #29832, comment 5


Ignore:
Timestamp:
01/28/2015 05:19:57 AM (10 years ago)
Author:
DrewAPicture
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29832, comment 5

    initial v1  
    1 For what it's worth, I also wrote an answer awhile back on StackExchange for adding a data attribute to gallery image elements. That was applicable to integration with the Galleria script and uses the [https://developer.wordpress.org/reference/hooks/wp_get_attachment_image_attributes/ wp_get_attachment_image_attributes] filter.
    2 
    3 http://wordpress.stackexchange.com/a/160555/33309
     1For what it's worth, I also wrote [https://developer.wordpress.org/reference/hooks/wp_get_attachment_image_attributes/#comment-61 an example] awhile back on the code reference for adding a data attribute to gallery image elements using the [https://developer.wordpress.org/reference/hooks/wp_get_attachment_image_attributes/ wp_get_attachment_image_attributes] filter. I think the original use-case on StackExchange was integration with the Galleria script.
    42
    53I would reiterate that the gallery shortcode is already littered with hooks and adding more is really just throwing gas on the fire. It's the jalopy of shortcodes at this point.