[wp-trac] [WordPress Trac] #51177: Add filters in the attachment_submitbox_metadata function
WordPress Trac
noreply at wordpress.org
Fri Aug 28 15:17:31 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 | Keywords:
Focuses: template |
-------------------------+-----------------------------
In wp-admin/includes/media.php line 3249, the function
{{{
function attachment_submitbox_metadata() {
}}}
this function has no filter, so it's not possible to hook into it without
to copy the function, but doing so would miss on any upgrade made to this
function.
I don't know why there is no filters in this function, maybe there is a
good explanation I didn't think about ?
The goal for me is to add the same div
{{{
.misc-pub-section.mis-pub-filename
}}}
used by the admin but with my own html.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51177>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list