WP_CLI\Dispatcher

CompositeCommand::get_subcommands()publicWP-CLI 1.0

Get the subcommands contained by this composite command.

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

Хуков нет.

Возвращает

Массив.

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

$CompositeCommand = new CompositeCommand();
$CompositeCommand->get_subcommands();

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

public function get_subcommands() {
	ksort( $this->subcommands );

	return $this->subcommands;
}