PHP 클래스 WP_MS_Network_Command

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

보호된 프로퍼티들

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

공개 메소드들

메소드 설명
create ( $args, $assoc_args ) Add a Network
delete ( $args, $assoc_args ) Delete a Network
list_ ( $args, $assoc_args ) List all networks.
move_site ( $args, $assoc_args ) Move to blog to another network
update ( $args, $assoc_args ) Update a Network

보호된 메소드들

메소드 설명
get_formatter ( array &$assoc_args ) : WP_CLI\Formatter Get Formatter object based on supplied parameters.

메소드 상세

create() 공개 메소드

: Domain for network : Path for network [--site_name=] : Name of new network [--clone_network=] : ID of network to clone [--options_to_clone=] : Options to clone to new network
public create ( $args, $assoc_args )

delete() 공개 메소드

: ID for network [--delete_blogs=] : Delete blogs in this network
public delete ( $args, $assoc_args )

get_formatter() 보호된 메소드

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

list_() 공개 메소드

[--fields=] : Limit the output to specific row fields. [--format=] : Accepted values: table, csv, json, count. Default: table ## AVAILABLE FIELDS These fields will be displayed by default for each term: * id * domain * path
public list_ ( $args, $assoc_args )

move_site() 공개 메소드

: Site id to move : New network id
public move_site ( $args, $assoc_args )

update() 공개 메소드

: ID for network : Domain for network [--path=] : Path for network
public update ( $args, $assoc_args )

프로퍼티 상세

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

Default fields to display for each object.
protected $obj_fields