[wp-hackers] Custom Post Status
rbilesky at gmail.com
Thu Aug 26 22:49:42 UTC 2010
Ok now is there a way by chance to remove a built in post status, or at
least prevent it from being selected when writing a post.
@scribu; that's a useful link. I'll have to bookmark that.
@austin: that's odd, but I don;t think any of that will affect me. The
status is going to be set via a db query based on end user inputs and for
the most part are to identify certain posts.
@mike: yes, thank you
On Thu, Aug 26, 2010 at 3:38 PM, Mike Schinkel
<mikeschinkel at newclarity.net>wrote:
> On Aug 26, 2010, at 6:31 PM, Ryan Bilesky wrote:
> > I want to setup a custom post status. I did a google search, the results
> > which seem to point to there being a function to register a custom post
> > status, that being register_post_status(), howver I see no mntion of this
> > the codex function refrence. Can anyone confirm the existance of such a
> > function, and at the very least where in the WP code it exists so I can
> > at it and see what arguments it requires.
> register_post_status($status,$args) can be found on line 563 of
> Here is the defaults for the $args array:
> $defaults = array(
> 'label' => false
> 'label_count' => false
> 'exclude_from_search' => null
> '_builtin' => false
> '_edit_link' => 'post.php?post=%d'
> 'capability_type' => 'post'
> 'hierarchical' => false
> 'public' => null
> 'internal' => null
> 'protected' => null
> 'private' => null
> 'show_in_admin_all' => null
> 'publicly_queryable' => null
> 'show_in_admin_status_list' => null
> 'show_in_admin_all_list' => null
> 'single_view_cap' => null
> Hope this helps.
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers