Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 915 Bytes

File metadata and controls

43 lines (29 loc) · 915 Bytes
layout default
title wp post-type get
display_global_parameters true

Commands » post-type » get

wp post-type get - Get a post type

Quick links: Github issues


OPTIONS

<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 ---

EXAMPLES

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