PHP Класс Papi_CLI_Term_Command, papi

Наследование: extends Papi_CLI_Command
Показать файл Открыть проект

Открытые методы

Метод Описание
get ( array $args, array $assoc_args ) Get fields that exists on a term.

Защищенные методы

Метод Описание
get_default_format_fields ( ) : array Get default fields for formatter.

Описание методов

get() публичный Метод

## 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() защищенный Метод

Get default fields for formatter.
protected get_default_format_fields ( ) : array
Результат array