[wp-trac] [WordPress Trac] #33468: Add image caption hook

WordPress Trac noreply at wordpress.org
Thu Aug 20 17:05:07 UTC 2015


#33468: Add image caption hook
-----------------------------+-----------------------------
 Reporter:  guillaumemolter  |      Owner:
     Type:  enhancement      |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Media            |    Version:
 Severity:  normal           |   Keywords:
  Focuses:  template         |
-----------------------------+-----------------------------
 There is currently no proper way to hook into image captions.

 Image captions are stored into the excerpt of attachments posts but when
 the caption is retrieved it doesn't go threw any specific filter.

 I think it would be nice to have a `add_filter ( 'image_caption',
 'your_filter' );` or something similar.

 This was already discussed here : [https://wordpress.org/ideas/topic/add-
 image-caption-hook#post-28710]

 Captions are used by multiple themes and plugins. They are fully supported
 and showed in twenty-fifteen so I think we should be able to properly
 hook/filter them.

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


More information about the wp-trac mailing list