[wp-trac] [WordPress Trac] #5798: add_meta_box() API
WordPress Trac
wp-trac at lists.automattic.com
Fri Feb 8 09:42:15 GMT 2008
#5798: add_meta_box() API
---------------------+------------------------------------------------------
Reporter: ryan | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.5
Component: General | Version:
Severity: normal | Keywords:
---------------------+------------------------------------------------------
We need a simple API for adding "meta" boxes to the various edit forms
that insulates plugin authors from layout changes such as the transition
from dbx to postbox.
Proposal:
{{{
function add_meta_box($id, $title, $callback, $context)
}}}
$id is an id for the div tag containing the box; $title is the title of
the box; $callback is the function to call which will fill the box with
content; $context is the context in which the box should be output.
Context is edit_post, edit_page, edit_link, edit_post_advanced,
edit_page_advanced, edit_link_advanced.
--
Ticket URL: <http://trac.wordpress.org/ticket/5798>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list