WP_CLI\Dispatcher

CompositeCommand::remove_subcommand()publicWP-CLI 1.0

Remove a named subcommand from this composite command's set of contained subcommands

Метод класса: CompositeCommand{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$CompositeCommand = new CompositeCommand();
$CompositeCommand->remove_subcommand( $name );
$name(строка) (обязательный)
Represents how subcommand should be invoked

Код CompositeCommand::remove_subcommand() WP-CLI 2.8.0-alpha

public function remove_subcommand( $name ) {
	if ( isset( $this->subcommands[ $name ] ) ) {
		unset( $this->subcommands[ $name ] );
	}
}