[wp-trac] [WordPress Trac] #32363: Filter in `wp_get_attachment_image_src`
WordPress Trac
noreply at wordpress.org
Tue May 12 17:27:11 UTC 2015
#32363: Filter in `wp_get_attachment_image_src`
-------------------------+-----------------------------
Reporter: eclev91 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
I’ve been working on a plugin for filler images on posts without
thumbnails so that during development I’m not swamping the media library
with things I have to delete later.
I can hook into `post_thumbnail_html` and check if the HTML is empty,
which does the trick for things like `get_post_thumbnail()`, but sometimes
I may use the post thumbnail as a background image, so I use
`wp_get_attachment_image_src` instead, which doesn't call the
aforementioned hook. It’d be nice to be able to hook in there as well.
Other suggestions would be great, but I'll be working on a patch.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32363>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list