WC_WCCOM_Site_Installation_State::capture_failure()publicWC 1.0

Capture an installation failure.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$WC_WCCOM_Site_Installation_State = new WC_WCCOM_Site_Installation_State();
$WC_WCCOM_Site_Installation_State->capture_failure( $step_name, $error_code );
$step_name(строка) (обязательный)
The step name.
$error_code(строка) (обязательный)
The error code.

Код WC_WCCOM_Site_Installation_State::capture_failure() WC 9.8.2

public function capture_failure( $step_name, $error_code ) {
	$this->last_step_name   = $step_name;
	$this->last_step_error  = $error_code;
	$this->last_step_status = self::STEP_STATUS_FAILED;
}