WP_CLI\Dispatcher
CommandAddition::abort()
Abort the current command addition.
Method of the class: CommandAddition{}
No Hooks.
Return
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.8.0-alpha
public function abort( $reason = '' ) { $this->abort = true; $this->reason = (string) $reason; }