Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 1.17 KB

File metadata and controls

53 lines (42 loc) · 1.17 KB
layout default
title wp post-type
display_global_parameters true

Commands » post-type

wp post-type - Manage post types.

Quick links: Github issues


EXAMPLES

# Get a post type
$ wp post-type get page --fields=name,label,hierarchical --format=json
{"name":"page","label":"Pages","hierarchical":true}

# List post types with 'post' capability type
$ wp post-type list --capability_type=post --fields=name,public
+---------------+--------+
| name          | public |
+---------------+--------+
| post          | 1      |
| attachment    | 1      |
| revision      |        |
| nav_menu_item |        |
+---------------+--------+

SUBCOMMANDS

Name Description
get Get a post type
list List post types.