WC_WCCOM_Site_Installation_State::initiate_existing()
Initiate an existing installation state.
Method of the class: WC_WCCOM_Site_Installation_State{}
No Hooks.
Return
WC_WCCOM_Site_Installation_State
. The instance.
Usage
$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) (required)
- The product ID.
- $idempotency_key(string) (required)
- The idempotency key.
- $last_step_name(string) (required)
- The last step name.
- $last_step_status(string) (required)
- The last step status.
- $last_step_error(string) (required)
- The last step error.
- $started_date(int) (required)
- The timestamp of the installation start.
WC_WCCOM_Site_Installation_State::initiate_existing() WC WCCOM Site Installation State::initiate existing code WC 9.4.2
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; }