PHP 클래스 WP_CLI\CommandWithTerms

상속: extends WP_CLI_Command
파일 보기 프로젝트 열기: wp-cli/wp-cli

보호된 프로퍼티들

프로퍼티 타입 설명
$obj_fields array Default fields to display for each object.
$obj_id string
$obj_type string

공개 메소드들

메소드 설명
add ( $args, $assoc_args ) Add a term to an object.
list_ ( $args, $assoc_args ) List all terms associated with an object.
remove ( $args, $assoc_args ) Remove a term from an object.
set ( $args, $assoc_args ) Set object terms.

보호된 메소드들

메소드 설명
get_formatter ( array &$assoc_args ) : Formatter Get Formatter object based on supplied parameters.
get_obj_id ( ) : string Get obj_id Class variable
get_object_type ( ) : string Get obj_type Class variable
set_obj_id ( string $obj_id ) Set obj_id Class variable
taxonomy_exists ( $taxonomy ) Check if taxonomy exists

메소드 상세

add() 공개 메소드

Append the term to the existing set of terms on the object. : The ID of the object. : The name of the taxonomy type to be added. ... : The slug of the term or terms to be added.
public add ( $args, $assoc_args )

get_formatter() 보호된 메소드

Get Formatter object based on supplied parameters.
protected get_formatter ( array &$assoc_args ) : Formatter
$assoc_args array Parameters passed to command. Determines formatting.
리턴 Formatter

get_obj_id() 보호된 메소드

Get obj_id Class variable
protected get_obj_id ( ) : string
리턴 string

get_object_type() 보호된 메소드

Get obj_type Class variable
protected get_object_type ( ) : string
리턴 string $obj_type

list_() 공개 메소드

: ID for the object. ... : One or more taxonomies to list. [--fields=] : Limit the output to specific row fields. [--format=] : Accepted values: table, csv, json, count, ids. Default: table ## AVAILABLE FIELDS These fields will be displayed by default for each term: * term_id * name * slug * taxonomy These fields are optionally available: * term_taxonomy_id * description * term_group * parent * count
public list_ ( $args, $assoc_args )

remove() 공개 메소드

: The ID of the object. : The name of the term's taxonomy. ... : The name of the term or terms to be removed from the object.
public remove ( $args, $assoc_args )

set() 공개 메소드

Replaces existing terms on the object. : The ID of the object. : The name of the taxonomy type to be updated. ... : The slug of the term or terms to be updated.
public set ( $args, $assoc_args )

set_obj_id() 보호된 메소드

Set obj_id Class variable
protected set_obj_id ( string $obj_id )
$obj_id string

taxonomy_exists() 보호된 메소드

Check if taxonomy exists
protected taxonomy_exists ( $taxonomy )
$taxonomy

프로퍼티 상세

$obj_fields 보호되어 있는 프로퍼티

Default fields to display for each object.
protected array $obj_fields
리턴 array

$obj_id 보호되어 있는 프로퍼티

protected string $obj_id
리턴 string

$obj_type 보호되어 있는 프로퍼티

protected string $obj_type
리턴 string