Post Type full parameters
Here is a list of parameters which can be included in the array passed as PostType parameter.
Key | Description | Required |
---|---|---|
namespace | Set a unique namespace for a post type. If another post type has the same namespace, the new one will overwrite the old. | True |
label | Set label for post type. | No |
new-post-label | Set new post label for post type. | No |
edit-post-label | Set edit post label for post type. | No |
posts-list-label | Set posts list label for post type | No |
delete-post-label | Set delete post label for post type. | No |
menu-position | Define a position for post type. Default value is after dashboard menu. | No |
menu-icon | Set menu icon. Use font-awesome icon. "fa fa-star" is used if not set. | No |
privilege | Set which role can access to this post type. "system@manage_modules" is used if not set. | No |
displays | Choose whether you want to hide default provided elements. Defaults is array( 'title' , 'editor', 'publish' ) | No |
comment-enabled | Set whether the post type supports comments. Default True. | No |
post-comment-label | Set post comment label on post menu. Default is "comment". | No |
comments-list-label | Set a label for comment list. Default is '%s Comments', where '%s' is the post namespace. | No |
is-hierarchical | Set whether the post type is hierarchical (like page), default : true | No |
Updated less than a minute ago