[wp-trac] [WordPress Trac] #12567: a custom registered post status has no access to meta boxes
WordPress Trac
wp-trac at lists.automattic.com
Wed Mar 10 00:46:20 UTC 2010
#12567: a custom registered post status has no access to meta boxes
---------------------------+------------------------------------------------
Reporter: themattharris | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Unassigned
Component: Post Types | Version:
Severity: normal | Keywords: post_status, register_post_status, post_submit_meta_box, metaboxes
---------------------------+------------------------------------------------
Currently there isn't a way to modify the meta boxes which set the post
status. The function post_submit_meta_box in wp-admin/includes/meta-
boxes.php is a closed function with post statuses hard coded. A new post
status registered using register_post_status is available to the query
object and plugins but cannot be added to the post status select box in
the publish meta box.
A lot of the post_submit_meta_box is hardcoded to the default post status
types.
Consider the use case where you want posts to only be visible to logged in
users. A custom post status selectable by the user in add/edit post could
be used which is then added or excluded in the query (filtered by
posts_where) depending on whether the user is logged in or not. This way
core can handle the non-visible posts the way private or future posts are
handled.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12567>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list