Register the auto-draft post status. see #11889
git-svn-id: https://develop.svn.wordpress.org/trunk@12992 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
13b54b44d8
commit
0b7de0491f
@ -88,6 +88,12 @@ function create_initial_post_types() {
|
||||
'_builtin' => true,
|
||||
'label_count' => _n_noop('Trash <span class="count">(%s)</span>', 'Trash <span class="count">(%s)</span>')
|
||||
) );
|
||||
|
||||
register_post_status( 'auto-draft', array( 'label' => _x('Auto-Draft', 'post'),
|
||||
'exclude_from_search' => true,
|
||||
'_builtin' => true,
|
||||
'label_count' => _n_noop('Auto-Draft <span class="count">(%s)</span>', 'Auto-Drafts <span class="count">(%s)</span>')
|
||||
) );
|
||||
}
|
||||
add_action( 'init', 'create_initial_post_types', 0 ); // highest priority
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user