WP_CLI\Dispatcher

CompositeCommand::remove_subcommand()publicWP-CLI 1.0

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

Method of the class: CompositeCommand{}

No Hooks.

Return

null. Nothing.

Usage

$CompositeCommand = new CompositeCommand();
$CompositeCommand->remove_subcommand( $name );
$name(string) (required)
Represents how subcommand should be invoked

CompositeCommand::remove_subcommand() code WP-CLI 2.8.0-alpha

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