WP_CLI\Dispatcher
CompositeCommand::remove_subcommand
Remove a named subcommand from this composite command's set of contained subcommands
Method of the class: CompositeCommand{}
No Hooks.
Returns
null. Nothing (null).
Usage
$CompositeCommand = new CompositeCommand(); $CompositeCommand->remove_subcommand( $name );
- $name(string) (required)
- Represents how subcommand should be invoked.
CompositeCommand::remove_subcommand() CompositeCommand::remove subcommand code WP-CLI 2.13.0-alpha
public function remove_subcommand( $name ) {
if ( isset( $this->subcommands[ $name ] ) ) {
unset( $this->subcommands[ $name ] );
}
}