[wp-hackers] Add Post Statuses?

scribu scribu at gmail.com
Sat Mar 27 09:31:08 UTC 2010


Oh, and I don't think the quick editor or the publish metabox have
support for custom post statuses yet.

On 3/27/10, scribu <scribu at gmail.com> wrote:
> You need to have at least one post with that status for the filter
> link to appear.
>
> On 3/27/10, Mike Schinkel <mikeschinkel at newclarity.net> wrote:
>> I'm trying to figure out how to add a new post status in wp3.0.  I run
>> register_post_status() and it enables querying for that post type:
>>
>> register_post_status(
>> 	'hidden',
>> 	array(
>> 		'label' => _x('Hidden', 'post'),
>> 		'public' => true,
>> 		'label_count' => _n_noop('Hidden <span class="count">(%s)</span>',
>> 'Hidden
>> <span class="count">(%s)</span>')
>> 	)
>> );
>>
>> ...however when I go to a post or page editor in the admin the "Hidden"
>> status does not show up.  Clearly I need to do something else.  Can
>> anyone
>> suggest what that would be?
>>
>> Thanks in advance.
>>
>> -Mike
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>
>
> --
> http://scribu.net
>


-- 
http://scribu.net


More information about the wp-hackers mailing list