[wp-trac] [WordPress Trac] #51177: Add filters in the attachment_submitbox_metadata function

WordPress Trac noreply at wordpress.org
Tue Sep 1 05:16:39 UTC 2020


#51177: Add filters in the attachment_submitbox_metadata function
-------------------------------+------------------------------
 Reporter:  Jean-David         |       Owner:  (none)
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Media              |     Version:
 Severity:  minor              |  Resolution:
 Keywords:  close 2nd-opinion  |     Focuses:  template
-------------------------------+------------------------------
Changes (by garrett-eclipse):

 * keywords:   => close 2nd-opinion


Comment:

 Going to mark this as `close` and `2nd-opinion`. As @Mista-Flo mentioned
 you can add additional `.misc-pub-section` element by adding a custom hook
 onto the `attachment_submitbox_misc_actions` action. If you give it a
 priority less than 10 it'll place your custom items prior to the existing
 sections, if you give it a priority greater than 10 it'll place your
 custom items after the existing sections.

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


More information about the wp-trac mailing list