Class Papi_CLI_Post_Command
-
WP_CLI_Command
-
Papi_CLI_Command
-
Papi_CLI_Post_Command
Methods summary
protected
array
|
|
public
|
#
get( array $args, array $assoc_args )
Get fields that exists on a post.
Get fields that exists on a post.
OPTIONS
- Post ID
- [--field=]
- Instead of returning the whole post fields, returns the value of a single fields.
- [--fields=]
- Get a specific subset of the post's fields.
- [--format=]
- Accepted values: table, json, csv. Default: table.
AVAILABLE FIELDS
These fields are available for get command:
EXAMPLES
wp papi post get 123 --format=json
wp papi post get 123 --field=slug
Parameters
|