Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #16349, comment 17


Ignore:
Timestamp:
10/03/2012 09:53:36 AM (13 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16349, comment 17

    initial v1  
    22> 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.
    33
    4 Ok, and how would the OP use the 'local' subarray for implementing their image notes plugin?
     4Ok, and how would the OP use the 'local' or 'external' subarrays for implementing their image notes plugin?