[wp-trac] [WordPress Trac] #28774: Hooking into wp_ajax_upload_attachment

WordPress Trac noreply at wordpress.org
Fri Aug 22 03:03:03 UTC 2014


#28774: Hooking into wp_ajax_upload_attachment
-------------------------------+------------------------------
 Reporter:  jshreve            |       Owner:
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  trunk
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by nacin):

 * keywords:   => reporter-feedback


Comment:

 I think unhooking core wp_ajax_* hooks is kind of at-your-risk. I'm not
 going to pretend that those are API, and I imagine we've already broken
 them a number of times at this point.

 An action in wp_ajax_upload_attachment() could make sense, but really,
 there should already be hooks deeper in the process, such as in
 wp_handle_upload(). What are you trying to do?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28774#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list