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

WordPress Trac noreply at wordpress.org
Thu Jan 19 23:19:56 UTC 2023


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

Comment (by costdev):

 Sorry @audrasjb! 😂

 Yeah I had to double-check the `$post`, as it's `ARRAY_A` rather than
 `WP_Post`.

 Additional props to @hellofromTonya from rubber-ducking with me on the
 appropriate hook position.

 What do you think @audrasjb? Is
 [https://core.trac.wordpress.org/attachment/ticket/23148/23148.2.diff
 23148.2.diff] ready for commit consideration, or is there anything else
 you think it might need (in terms of code/docs)?

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


More information about the wp-trac mailing list