WP_CLI\Dispatcher
CommandAddition::abort
Abort the current command addition.
Метод класса: CommandAddition{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$CommandAddition = new CommandAddition(); $CommandAddition->abort( $reason );
- $reason(строка)
- Reason as to why the addition was aborted.
По умолчанию: ''
Код CommandAddition::abort() CommandAddition::abort WP-CLI 2.13.0-alpha
public function abort( $reason = '' ) {
$this->abort = true;
$this->reason = (string) $reason;
}