WC_WCCOM_Site_Installation_State::initiate_existing
Initiate an existing installation state.
Метод класса: WC_WCCOM_Site_Installation_State{}
Хуков нет.
Возвращает
WC_WCCOM_Site_Installation_State. The instance.
Использование
$result = WC_WCCOM_Site_Installation_State::initiate_existing( $product_id, $idempotency_key, $last_step_name, $last_step_status, $last_step_error, $started_date );
- $product_id(int) (обязательный)
- The product ID.
- $idempotency_key(строка) (обязательный)
- The idempotency key.
- $last_step_name(строка) (обязательный)
- The last step name.
- $last_step_status(строка) (обязательный)
- The last step status.
- $last_step_error(строка) (обязательный)
- The last step error.
- $started_date(int) (обязательный)
- The timestamp of the installation start.
Код WC_WCCOM_Site_Installation_State::initiate_existing() WC WCCOM Site Installation State::initiate existing WC 10.9.4
public static function initiate_existing( $product_id, $idempotency_key, $last_step_name, $last_step_status, $last_step_error, $started_date ) {
$instance = new self( $product_id );
$instance->idempotency_key = $idempotency_key;
$instance->last_step_name = $last_step_name;
$instance->last_step_status = $last_step_status;
$instance->last_step_error = $last_step_error;
$instance->started_date = $started_date;
return $instance;
}