| layout | default |
|---|---|
| title | wp post-type get |
| display_global_parameters | true |
wp post-type get - Get a post type
Quick links: Github issues
<post-type> : Post type slug
[--field=<field>] : Instead of returning the whole taxonomy, returns the value of a single field.
[--fields=<fields>] : Limit the output to specific fields. Defaults to all fields.
[--format=<format>] : Render output in a particular format. --- default: table options:
- table
- csv
- json
- yaml ---
$ wp post-type get page --fields=name,label,hierarchical --format=json
{"name":"page","label":"Pages","hierarchical":true}