WP_CLI\Dispatcher

CommandAddition::abort()publicWP-CLI 1.0

Abort the current command addition.

Метод класса: CommandAddition{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$CommandAddition = new CommandAddition();
$CommandAddition->abort( $reason );
$reason(строка)
Reason as to why the addition was aborted.
По умолчанию: ''

Код CommandAddition::abort() WP-CLI 2.8.0-alpha

public function abort( $reason = '' ) {
	$this->abort  = true;
	$this->reason = (string) $reason;
}