Class Papi_CLI_Type_Command
-
WP_CLI_Command
-
Papi_CLI_Command
-
Papi_CLI_Type_Command
Methods summary
protected
array
|
|
protected
string
|
|
public
|
#
list_( $args, $assoc_args )
List Papi types.
Options
- [--=]
- Filter types based on type property.
- [--field=]
- Prints the value of a single field for each type.
- [--fields=]
- Limit the output to specific type fields.
- [--format=]
- Acceptec values: table, csv, json, count, ids. Default: table.
AVAILABLE FIELDS
These fields will be displayed by default for each type:
- name
- id
- post_type
- template
- number_of_pages
- type
Not all fields exists on a Papi type so some fields will have n/a
as value when no value can be displayed.
EXAMPLES
wp papi type list
Subcommand
list
|