WP_CLI\Dispatcher
CommandAddition::abort
Abort the current command addition.
Method of the class: CommandAddition{}
No Hooks.
Returns
null. Nothing (null).
Usage
$CommandAddition = new CommandAddition(); $CommandAddition->abort( $reason );
- $reason(string)
- Reason as to why the addition was aborted.
Default: ''
CommandAddition::abort() CommandAddition::abort code WP-CLI 2.13.0-alpha
public function abort( $reason = '' ) {
$this->abort = true;
$this->reason = (string) $reason;
}