[wp-trac] [WordPress Trac] #16349: return list of images actually being used in post

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 3 09:44:39 UTC 2012


#16349: return list of images actually being used in post
-----------------------------+------------------------------
 Reporter:  mcmasterp        |       Owner:
     Type:  feature request  |      Status:  reopened
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Media            |     Version:  3.0.4
 Severity:  normal           |  Resolution:
 Keywords:  close            |
-----------------------------+------------------------------

Comment (by scribu):

 Replying to [comment:15 MikeSchinkel]:
 > What's needed IMO is probably a function like
 `get_available_images($object_id, 'post')` that would return an array of
 images categories with subarrays containing some type of references to
 those images such as 'featured', 'attached', 'local' and 'external' where
 the latter two are inline in the HTML.  Then there could also be a set of
 hooks to allow plugins to add image categories i.e. 'slide', 'headshot',
 'cover', etc.

 Ok, and how would the OP use the 'local' subarray for implementing their
 image notes plugin?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16349#comment:17>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list