[wp-trac] [WordPress Trac] #34034: Hook for Page Attributes Metabox
WordPress Trac
noreply at wordpress.org
Sat Sep 26 08:03:11 UTC 2015
#34034: Hook for Page Attributes Metabox
--------------------------------+-----------------------------
Reporter: markcallen | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version:
Severity: normal | Keywords:
Focuses: administration |
--------------------------------+-----------------------------
The publish metabox provides two hooks to add additional
information/elements to it.
{{{
post_submitbox_misc_actions
attachment_submitbox_misc_actions
}}}
It would be trivial to add a similar hook to the Page Attributes meta box
- is there any reason why this can't be done?
Adding page related meta in an entirely new metabox isn't great for UX -
two places for page attributes is silly.
There are several solutions touted in the wild ranging from hacking core
to removing and recreating the metabox manually or inserting the elements
with javascript - none good solutions.
The addition of a single hook would allow much better practice to be
adopted in adding options to this metabox.
{{{
do_action( 'page_attributes_misc_actions' );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34034>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list