PHP Class Papi_CLI_Term_Command, papi

Inheritance: extends Papi_CLI_Command
Afficher le fichier Open project: wp-papi/papi

Méthodes publiques

Méthode Description
get ( array $args, array $assoc_args ) Get fields that exists on a term.

Méthodes protégées

Méthode Description
get_default_format_fields ( ) : array Get default fields for formatter.

Method Details

get() public méthode

## OPTIONS : Term ID [--field=] : Instead of returning the whole term fields, returns the value of a single fields. [--fields=] : Get a specific subset of the term's fields. [--format=] : Accepted values: table, json, csv. Default: table. ## AVAILABLE FIELDS These fields are available for get command: * slug * type * exists ## EXAMPLES wp papi term get 123 --format=json wp papi term get 123 --field=slug
public get ( array $args, array $assoc_args )
$args array
$assoc_args array

get_default_format_fields() protected méthode

Get default fields for formatter.
protected get_default_format_fields ( ) : array
Résultat array