Changes between Initial Version and Version 1 of Ticket #29832, comment 5
- Timestamp:
- 01/28/2015 05:19:57 AM (10 years ago)
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 1 For 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. 4 2 5 3 I 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.