wp post-type get
Gets details about a registered post type.
Synopsis
bash
wp post-type get <post-type> [--field=<field>] [--fields=<fields>] [--format=<format>]Options
[–field=
[–fields=
[–format=
- default: table
- options: table, csv, json, yaml
Available Fields
Default fields:
- name
- label
- description
- hierarchical
- public
- capability_type
- labels
- cap
- supports
Optional fields:
- count
Examples
bash
# Get details about the 'page' post type
$ wp post-type get page --fields=name,label,hierarchical --format=json
{"name":"page","label":"Pages","hierarchical":true}