[wp-trac] [WordPress Trac] #30062: Add Hooks to Image Editor UI

WordPress Trac noreply at wordpress.org
Tue Oct 21 15:59:22 UTC 2014


#30062: Add Hooks to Image Editor UI
--------------------------------+-----------------------------
 Reporter:  ericmann            |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Media               |    Version:  4.0
 Severity:  normal              |   Keywords:
  Focuses:  ui, administration  |
--------------------------------+-----------------------------
 While attempting to add new components to the media editor modal, our team
 discovered there are no hooks (actions ''or'' filters) in the
 `wp_image_editor` function of WordPress core.

 We'd like to abstract the function from its current state to make things
 more extensible.

 Concretely, we'd like to pull out various image edit groups into separate
 callback functions and add them to the UI similar to widgets or scripts
 (with a discrete registration mechanism). This presents developers with
 the ability to add new groups, manipulate the order of all groups,
 dynamically remove unused groups, or even register/avail unused groups for
 other developers.

 Breaking the function out into discrete components also allows for better
 test coverage for this component of the application.

 Ultimately, our goal was to add art direction control the media editor so
 site administrators have more control over responsive images.
 Unfortunately the lack of hooks prevents any direct manipulation of the
 media editor.

 Patch forthcoming ...

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


More information about the wp-trac mailing list