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.
Return
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.8.0-alpha
public function remove_subcommand( $name ) { if ( isset( $this->subcommands[ $name ] ) ) { unset( $this->subcommands[ $name ] ); } }