[wp-trac] [WordPress Trac] #23148: Add hook in wp_ajax_save_attachment for additional attachment fields

WordPress Trac noreply at wordpress.org
Fri Jan 20 14:15:57 UTC 2023


#23148: Add hook in wp_ajax_save_attachment for additional attachment fields
---------------------------------------------+-----------------------
 Reporter:  griffinjt                        |       Owner:  audrasjb
     Type:  enhancement                      |      Status:  closed
 Priority:  normal                           |   Milestone:  6.2
Component:  Media                            |     Version:  3.5
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch needs-dev-note commit  |     Focuses:
---------------------------------------------+-----------------------
Changes (by audrasjb):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55106" 55106]:
 {{{
 #!CommitTicketReference repository="" revision="55106"
 Media: Add an action hook on `wp_ajax_save_attachment()`.

 This changeset introduces the `wp_ajax_save_attachment` action hook,
 triggered after an attachment has been updated and before the JSON
 response is sent. For example, it allows developers to update any
 additional attachment fields that have been rendered by extending the
 `media.view.Attachment.Details` subview.

 Props griffinjt, bradyvercher, pputzer, antpb, sc0ttkclark, audrasjb,
 costdev, hellofromTonya.
 Fixes #23148.
 }}}

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


More information about the wp-trac mailing list