Post Type full parameters

Here is a list of parameters which can be included in the array passed as PostType parameter.

KeyDescriptionRequired
namespaceSet a unique namespace for a post type. If another post type has the same namespace, the new one will overwrite the old.True
labelSet label for post type.No
new-post-labelSet new post label for post type.No
edit-post-labelSet edit post label for post type.No
posts-list-labelSet posts list label for post typeNo
delete-post-labelSet delete post label for post type.No
menu-positionDefine a position for post type. Default value is after dashboard menu.No
menu-iconSet menu icon. Use font-awesome icon. "fa fa-star" is used if not set.No
privilegeSet which role can access to this post type. "system@manage_modules" is used if not set.No
displaysChoose whether you want to hide default provided elements. Defaults is array( 'title' , 'editor', 'publish' )No
comment-enabledSet whether the post type supports comments. Default True.No
post-comment-labelSet post comment label on post menu. Default is "comment".No
comments-list-labelSet a label for comment list. Default is '%s Comments', where '%s' is the post namespace.No
is-hierarchicalSet whether the post type is hierarchical (like page), default : trueNo