PHP 클래스 WP_CLI\CommandWithMeta

상속: extends WP_CLI_Command
파일 보기 프로젝트 열기: wp-cli/wp-cli 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$meta_type

공개 메소드들

메소드 설명
add ( $args, $assoc_args ) Add a meta field.
delete ( $args, $assoc_args ) Delete a meta field.
get ( $args, $assoc_args ) Get meta field value.
list_ ( $args, $assoc_args ) List all metadata associated with an object.
update ( $args, $assoc_args ) Update a meta field.

보호된 메소드들

메소드 설명
check_object_id ( $object_id ) Check that the object ID exists

비공개 메소드들

메소드 설명
get_fields ( ) : array Get the fields for this object's meta

메소드 상세

add() 공개 메소드

## OPTIONS : The ID of the object. : The name of the meta field to create. [] : The value of the meta field. If omitted, the value is read from STDIN. [--format=] : The serialization format for the value. --- default: plaintext options: - plaintext - json ---
public add ( $args, $assoc_args )

check_object_id() 보호된 메소드

Check that the object ID exists
protected check_object_id ( $object_id )

delete() 공개 메소드

: The ID of the object. [] : The name of the meta field to delete. [] : The value to delete. If omitted, all rows with key will deleted. [--all] : Delete all meta for the object.
public delete ( $args, $assoc_args )

get() 공개 메소드

: The ID of the object. : The name of the meta field to get. [--format=] : Accepted values: table, json. Default: table
public get ( $args, $assoc_args )

list_() 공개 메소드

: ID for the object. [--keys=] : Limit output to metadata of specific keys. [--fields=] : Limit the output to specific row fields. Defaults to id,meta_key,meta_value. [--format=] : Accepted values: table, csv, json, count. Default: table
public list_ ( $args, $assoc_args )

update() 공개 메소드

## OPTIONS : The ID of the object. : The name of the meta field to update. [] : The new value. If omitted, the value is read from STDIN. [--format=] : The serialization format for the value. --- default: plaintext options: - plaintext - json ---
public update ( $args, $assoc_args )

프로퍼티 상세

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

protected $meta_type